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 <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/AJ6IGCWEWWTP57GYKRKFVU7QKZA3QH3K/
This message sent to arch...@mail-archive.com