CoCalc Shared Filesscratch / markdown-latex-issues.ipynbOpen in CoCalc with one click!
Author: Harald Schilly
Views : 21

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

This is oddstyled

In [ ]: