Skip to content

Render a supplier's plain agenda text as markdown, so its links are links - #300

Merged
joepio merged 1 commit into
mainfrom
agenda-text-with-links
Sep 10, 2026
Merged

Render a supplier's plain agenda text as markdown, so its links are links#300
joepio merged 1 commit into
mainfrom
agenda-text-with-links

Conversation

@joepio

@joepio joepio commented Sep 10, 2026

Copy link
Copy Markdown
Member

Fixes #295.

Meeting and agenda descriptions are inserted with {@html}. That suits Notubiz, which hands over HTML, but iBabs hands over plain text that griffies write with markdown in it: Harderwijk's [www.harderwijk.nl/vergaderingen](https://www.harderwijk.nl/vergaderingen) showed with its brackets, unclickable, with 
 carriage-return entities between the paragraphs.

renderSupplierText now decides per text: if it contains the tags a supplier's HTML actually uses (p, br, a, lists, headings, tables...) it is passed through as before; otherwise numeric entities are decoded, the text is escaped and rendered as markdown with line breaks kept. So links become links, and a stray <script> in plain text is shown as text rather than executed, which the old passthrough would not have guaranteed.

Two tests: the Harderwijk text (link rendered, entities gone, angle brackets escaped) and HTML passthrough.

…inks

Notubiz hands over HTML for meeting and agenda descriptions; iBabs hands
over plain text that griffies write with markdown in it. Both were
inserted as HTML, so Harderwijk's "[www.harderwijk.nl/vergaderingen](...)"
appeared with its brackets and unclickable, with &#xD; entities in
between (#295). Text without the tags a supplier's HTML uses is now
decoded, escaped and rendered as markdown: links become links, line
breaks survive, and nothing in it can become markup of its own. HTML is
passed through as before.
@joepio
joepio merged commit b3a6079 into main Sep 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown in HTML vergadering

1 participant