| Hosted by CoCalc | Download
Kernel: Python 3 (Ubuntu Linux)

Problematic Latex Parsing

This worksheet demonstrates problematic aspects of parsing html/markdown.

Dollar in Code

This is from a section explaining R code.

This

use `$`, e.g. `table(people$sex)`

ends up as

use $, e.g. table(people$sex)

Dollars in indented "code"

These $ should be ignored $.

This works, though

These `$` should be ignored `$`.

But without indentation, this text

And without indention: `$` and `$`.

ends up as

And without indention: $ and $.

Dollar in HTML / 1

The class=... attribute should be ignored, but instead the whole text in between the dollar signs vanishes.

<span class="style-$">This is odd</span><span class="style2-$">styled</span>

This is oddstyled