gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.73k stars 857 forks source link

HTML comments containing three backticks #433

Open yihui opened 7 years ago

yihui commented 7 years ago

HTML comments containing three backticks seems to break the Markdown parser somehow. In the minimal example below, --- can no longer start a new slide (but treated as a horizontal line instead):

<!DOCTYPE html>
<html>
<head>
  <title>My Problem</title>
  <meta charset="utf-8">
</head>

<body>

<textarea id="source">
## Tags

&lt;!-- ``` --&gt;

---

## Studies

&lt;!-- ``` --&gt;
</textarea>

<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create();
</script>
</body>
</html>

Output:

image

Originally reported at https://github.com/yihui/xaringan/issues/52

filippogambarota commented 2 years ago

Hi, is there any solution for this? Thanks!