Skip to content

Tests for Markdown HTML markup with embedded Markdown markup. - #2178

Merged
RogerHaase merged 4 commits into
moinwiki:masterfrom
gmilde:md-fixup
Feb 26, 2026
Merged

Tests for Markdown HTML markup with embedded Markdown markup.#2178
RogerHaase merged 4 commits into
moinwiki:masterfrom
gmilde:md-fixup

Conversation

@gmilde

@gmilde gmilde commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

The PR #2166 fixed some cases of inline HTML tags/elements with
embedded Markdown (issue #1838).

Unfortunately, there are a number of valid use cases that still fail or show a different behaviour from the same HTML tag without embedded Markdown.
This PR adds test samples for them
(it also updates and sorts the markdown-in tests).

A partial fix is locally available, however, it increases the already high
amount of code duplication.
We should discuss options for better integration with the upstream
markdown and html parsers as well as the Moin html_in converter.

- Re-sort HTML markup tests.

- Add samples for HTML tags with standard attributes.

- More samples for Markdown in HTML.
  Remove duplicate sample: <del> without markdown is already tested.
Add samples for to-be-ignored HTML markup.

Add Babel configuration to avoid exception from log message localisation.
Additional tests for PR moinwiki#2166
Some valid use cases still fail.

TODO: fix behaviour and move samples to the non-failing tests.
@RogerHaase
RogerHaase merged commit 9ec5fa8 into moinwiki:master Feb 26, 2026
10 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.

2 participants