Does that mean the DB has data with mismatched tags in it?


The database has exactly what list members receive by email. What we are talking about is how this is rendered in HyperKitty.


Interestingly, the quoted part of my message has < where my message has proper less-than and greater-than for the Apache tags.


https://lists.mailman3.org/archives/list/[email protected]/message/L3M3E3WMAIY6YZ37FZEDZSFKXPEJSJHO/


It's inconsistent with the archive rendering mode at lists.mailman3.org.


Here's what's going on. In normal text, mistune disables HTML tags by converting `<` to the html entity `&lt;`, but your browser renders the HTML entity `&lt;` 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 `&lt;` but then the HTML escaping converts `&lt;` to `&amp;lt;` which your browser then renders as `&lt;` rather than `<`.

(aside, it will be interesting to see how that is rendered in the archive)

If HyperKitty is set to render as plain text rather than markdown it doesn't interpret code blocks so this doesn't happen. There are other anomalies with the markdown rendering, e.g., as pointed out by Jeremy at https://lists.mailman3.org/archives/list/[email protected]/message/XJDXIUYIZ6EPNSPMMG3G5ARSWBRFDY3K/

Those notwithstanding, we prefer markdown rendering for this list because often people post Python snippets or `mailman shell` interactions and enclosing those in markdown code blocks renders them much better.


I haven't currently got an instance that I can test on but will keep this in mind when the time comes to migrate.

Should the rendering at lists.mailman3.org get modified, please share the procedure.



Testing: less-than and greater-than around a tag:

<Location /mailman/accounts/signup>

Testing: less-than and greater-than around a tag in a quoted block:

 > <Location /mailman/accounts/signup>

Both the above tests look fine in the archive.

--
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/CUDODOM7TF3YLKRV45K5VGJDR3AO37VW/

This message sent to [email protected]

Reply via email to