Commit graph

14 commits

Author SHA1 Message Date
Peter Goodhall
868638e1b2 Render Markdown-like formatting in version dialog
Add a lightweight Markdown-like parser for admin-provided Version Dialog text and release notes. The changes convert inline code, headers, horizontal rules, blockquotes, strikethrough, bold/italic, bullet and numbered lists (including task list checkboxes), images, links, GitHub username mentions, and auto-link URLs. It also protects block elements from nl2br, removes excessive <br> tags, and makes images responsive. The same processing is applied in both display locations to improve readability and preserve existing behavior when no text is set.
2026-04-01 13:16:28 +01:00
Peter Goodhall
b3cad5b953 Handle Markdown horizontal rules
Convert markdown horizontal rules (---, ***, ___) to <hr> and treat <hr> as a block-level element when protecting content from nl2br. Updated regexes to insert <hr>, include hr in the block marker replacement, and clean up surrounding <br> tags so horizontal rules are not polluted by extra line breaks.
2026-04-01 12:58:27 +01:00
Peter Goodhall
86900513f8 Support markdown images in release notes
Adds CSS styling for images in release notes and updates the markdown parser to convert image syntax (![alt](url)) to HTML <img> tags. This improves the display of images in the version dialog.
2025-11-07 15:56:29 +00:00
Peter Goodhall
82a5e441d0 Improve markdown rendering in version dialog
Enhanced the PHP markdown-to-HTML conversion for release notes in the version dialog modal. Added CSS for better styling, improved handling of code blocks, lists, headers, links, bold/italic text, and cleaned up line break conversions for more accurate and readable output.
2025-11-07 15:55:26 +00:00
Peter Goodhall
bfbd104d49 Convert markdown to HTML using PHP in version dialog
Replaces client-side JavaScript markdown conversion with server-side PHP processing for release notes. Markdown is now parsed and rendered as HTML directly in PHP, improving reliability and removing the dependency on the Showdown library.
2025-08-09 22:54:38 +01:00
Peter Goodhall
34ba2c6e92 Improve markdown conversion and handle test exceptions
Added checks for required DOM elements before converting markdown to HTML in the version dialog to prevent errors. Updated Cypress support to ignore specific uncaught exceptions related to missing elements and markdown conversion, improving test reliability.
2025-07-17 17:25:38 +01:00
Peter Goodhall
f3ffab92ef Correctly format Markdown output for release notes 2024-02-17 13:46:18 +00:00
HB9HIL
cf8ecb1ed2 fixing version name 2023-12-22 16:46:18 +01:00
int2001
a7412331c2
Shows Versioninfo of CURRENT Version instead of newest 2023-12-15 11:54:26 +00:00
HB9HIL
18b52f623c show also the version as header 2023-12-05 16:24:31 +01:00
HB9HIL
8e486516e2 selectable div's 2023-12-04 20:44:43 +01:00
HB9HIL
3c5adeda0b adjusted language 2023-12-04 11:11:04 +01:00
HB9HIL
5559673fe5 the dialog itself 2023-12-04 01:21:12 +01:00
HB9HIL
d8c83198f1 created basic files 2023-12-03 21:29:22 +01:00