asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
50 stars 45 forks source link

Fix unrecongonized '<>&' in inline latexmath #2

Closed ProgramFan closed 9 years ago

ProgramFan commented 9 years ago

It's reported at https://github.com/asciidoctor/asciidoctor-pdf/issues/45 that inline latexmath such as latexmath:[a < b] does not work (the block macros work well). It's actually caused by unescaped '<>&' chars feed to mathematical. This commit fixes it by escaping these chars.

tstumm commented 9 years ago

Can you fix the typo in the comments (wired => weird) so I can merge?

ProgramFan commented 9 years ago

Thanks for pointing out the typo. It's fixed in the master branch now.