maddy icon indicating copy to clipboard operation
maddy copied to clipboard

[Bug][Markdown]: Internal double-underscores shouldn't be replaced with <strong>

Open luciansmith opened this issue 8 months ago • 3 comments

Operating System

all

Compiler

Visual Studio

Compiler flags

normal?

maddy version

1.5.0 (latest)

Minimal Mardown example

__this__whole__thing__
but__not__this

the github parser:

this__whole__thing but__not__this

What is not working? What did you try?

I just submitted a PR to fix this for single internal underscores like_this_one, but the 'strong' parser still finds internal double underscores like__this__one. They both should only replace at word boundaries. The same change for the strong parser as the emphasis parser results work for just the parser alone, but not for the global parser, for unclear-to-me reasons.

luciansmith avatar Apr 30 '25 23:04 luciansmith