You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rendering of markdown gives bad result if it contains headings, a fenced code block and some specific html
Steps to reproduce the behavior:
test script: markdown_test.py
"""
# markdown test
## subsection 1
```
fenced code block without syntax highlighting
```
## subsection 2
```python
# fenced code block with syntax highlighting
print("hello")
```
## subsection 3
<h2> an html heading </h2>
## subsection 4 with an html table
<ul>
<li> one </li>
<li> two </li>
<li> three </li>
</ul>
<div>
bla
</div>
Run pdoc on test script:
pdoc markdown_test.py
Gives this result in the browser:
Note, how the headings aren´t rendered correctly starting with the fenced python code block. If I remove the python syntax highlighting or the html <div> section at the end or even only the </div> marker at the very end of the test script, the result looks fine.
System Information
I encountered the problem first from a conda environment on windows when I tried to include a jupyter notebook exported to markdown into a project documentation. Then I tried on a linux machine with a conda environment and didn´t see the problem. But when I updated conda (conda update --all), the same issue came up. The update was from
pdoc 12.0.2 + python 3.9.12
to
pdoc 12.0.2 + python 3.9.13
(my windows conda also has the second version combination)
Problem Description
rendering of markdown gives bad result if it contains headings, a fenced code block and some specific html
Steps to reproduce the behavior:
test script: markdown_test.py
Run pdoc on test script:
Gives this result in the browser:
Note, how the headings aren´t rendered correctly starting with the fenced python code block. If I remove the python syntax highlighting or the html <div> section at the end or even only the </div> marker at the very end of the test script, the result looks fine.
System Information
I encountered the problem first from a conda environment on windows when I tried to include a jupyter notebook exported to markdown into a project documentation. Then I tried on a linux machine with a conda environment and didn´t see the problem. But when I updated conda (conda update --all), the same issue came up. The update was from
to
(my windows conda also has the second version combination)
In detail, the following packages were updated:
The text was updated successfully, but these errors were encountered: