Closed nicfv closed 4 months ago
I just installed 4.0.0-next.47
by the way. It is amazing, great job, and thank you!
Unfortunately, I'm still experiencing this bug. :(
If not fixed, and someone comes across this post in the future, I added these lines to my workflow which seem to fix the problem. (These lines search and replace all instances of \<
with <
and \>
with >
in all markdown files in the docs/
directory.)
sed -i 's|\\<|\<|g' docs/**/*.md
sed -i 's|\\>|\>|g' docs/**/*.md
I could potentially see issues arising by using my code above, IF for example you have a URL that contains \<
or \>
. Since it will convert that to the HTML entity as well, some links might break. You could buff up that script to check to see if it's a markdown link, or the line contains http
for example, and not run the replacement.
OR, if you have a comment that contains a code block with escaped square brackets, like this:
<hello>
\<hello>
<hello\>
\<hello\>
Then you'll end up with documentation looking like this:
<hello>
<hello>
<hello>
<hello>
thanks - i'll have a think about the best solution is for this.
Thank you for taking a look. I also created issue https://github.com/mkdocs/mkdocs/issues/3563 to see if they have anything to add to it.
"useHTMLEncodedBrackets" option will html encode angle brackets (rather than escape backslash). Available in typedoc-plugin-markdown@4.2.0.
I brought up an issue in #557 but it was overlooked and then the issue was closed.
When using generic types in class methods, this will add
\
characters before the<
and>
. See example:Which yields this markdown file:
Which mostly makes sense, but when combining with
mkdocs
, I get these weird artifacts:Is it possible to create an option on how
<
and>
are escaped? Or better yet, turn<
into<
and>
into>
. I tried replacing those characters with the HTML entities, and it worked perfectly.