piever / Remark.jl

Create markdown presentations from Julia
Other
94 stars 14 forks source link

Commenting doesn't work properly #43

Open yenson-lau opened 4 years ago

yenson-lau commented 4 years ago

In my index.md, suppose my first slide contains something like

# Title
Speaker name
Date

<!-- KaTeX Macros -->
$$\global\def\an{a^n}$$

The commented block unfortunately shows up on the slide.

bvrb commented 2 years ago

Just wanted to note that I also stumbled upon this and give a little more context:

A html comment like

<!-- Comment -->

in index.md will result in

<!– Comment –>

in the index.html generated by Remark.jl. Note that -- is converted to the Unicode 'en dash' character (U+2013) and the comment will not render properly.

This seems to be somehow connected to Documenter, since adding the documenter=false option during slideshow generation makes the problem disappear.