alfredbaudisch / pardall_markdown

Reactive publishing framework, filesystem-based with support for Markdown, nested hierarchies, and instant content rebuilding. Written in Elixir.
Apache License 2.0
115 stars 7 forks source link

Headers <h*> inside code blocks are incorrectly being parsed as page headers and added to the table of contents #28

Open alfredbaudisch opened 3 years ago

alfredbaudisch commented 3 years ago

Example:

<h1>Temperature  Control</h1>  <%=  live_render(@conn,  MyAppWeb.ThermostatLive)  %>
```


Generated content:
![image](https://user-images.githubusercontent.com/248383/133745056-c6e3421b-5026-42fe-9b3c-422ba10467ba.png)
![image](https://user-images.githubusercontent.com/248383/133745088-4ff5906c-83ab-4f9e-ab9d-5ccea21ca7bd.png)