On 11/9/24 17:09, Mark Sapiro wrote:
Here's what's going on. In normal text, mistune disables HTML tags by converting
<to the html entity<, but your browser renders the HTML entity<as<so you see what was written.The issue here is the text you quoted was originally in a markdown code block, i.e. preceded and followed by lines of three backticks. Code blocks are intended to be seen literally as written so they are wrapped in <pre><code> ... </code></pre> tags in the HTML and also HTML escaped. The problem is the tag disabling converts
<to<but then the HTML escaping converts<to&lt;which your browser then renders as<rather than<.(aside, it will be interesting to see how that is rendered in the archive)
The backtick quoting causes the < to be rendered as < Here are the
above two paragraphs written in a way (removing the backticks from
around <) that I hope will render as I intended.
Here's what's going on. In normal text, mistune disables HTML tags by
converting < to the html entity <, but your browser renders the
HTML entity < as < so you see what was written.
The issue here is the text you quoted was originally in a markdown code
block, i.e. preceded and followed by lines of three backticks. Code
blocks are intended to be seen literally as written so they are wrapped
in <pre><code> ... </code></pre> tags in the HTML and also HTML escaped.
The problem is the tag disabling converts < to < but then the HTML
escaping converts < to &lt; which your browser then renders
as < rather than <.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan