SaswatPadhi / pseudocode.js

Beautiful pseudocode for the Web
https://saswatpadhi.github.io/pseudocode.js
MIT License
221 stars 33 forks source link

`renderClass` API #32

Closed zcysxy closed 2 years ago

zcysxy commented 2 years ago

Related to #31. Seems like pretty straightforward.

To test it, I duplicated the katex-samples.html, changed all the id="..." to class="pseudocode", and replaced the script with

pseudocode.renderClass(document.getElementsByClassName("pseudocode"),
                                 {
                                     lineNumber: false,
                                     noEnd: true
                                 });

If there is no problem we can make it to the docs.

zcysxy commented 2 years ago

Thanks for the review, totally make sense! All changes are applied.

SaswatPadhi commented 2 years ago

Awesome, thank you so much! LGTM.