omnilib / sphinx-mdinclude

Markdown extension for Sphinx
https://sphinx-mdinclude.omnilib.dev
MIT License
21 stars 11 forks source link

Special characters (e.g. <) in an inline code block are rendered as &lt; #73

Open Demi-Lune opened 2 months ago

Demi-Lune commented 2 months ago

Description

Characters in an inline code block are converted to html, but should be left untouched.

For example, with this README.md:

The function returns a `std::vector<int>&`

the output is:

The function returns a std::vector&lt;int&gt;&amp;.

If the code is in a triple-quote block, the rendering is as expected.

Details