Projectsmaintained

pseudocode-ruby

A Ruby gem that renders LaTeX pseudocode algorithms to HTML with pseudocode.js and KaTeX.

Role
Author
Period
2022
Stack
Ruby, pseudocode.js, KaTeX, ExecJS
Source
github.com/FlorianFranzen/pseudocode-ruby
pseudocode-ruby mark

Written alongside the AsciiDoc toolchain of the Polkadot specification, which needed algorithms typeset the way papers do. The gem wraps pseudocode.js and KaTeX through ExecJS, in the style of katex-ruby: Pseudocode.render(algorithm) returns HTML, and the pseudocode stylesheet makes it look right. Published as the pseudocode gem under the MIT licence.