Skip to content

fix(html): restore default pre wrapper when InlineCode is false - #1529

Open
Yshuro wants to merge 1 commit into
alecthomas:masterfrom
Yshuro:fix/html-inline-code-false
Open

Yshuro wants to merge 1 commit into
alecthomas:masterfrom
Yshuro:fix/html-inline-code-false

Conversation

@Yshuro

@Yshuro Yshuro commented Nov 22, 2026

Copy link
Copy Markdown

When \html.InlineCode(false)\ was explicitly passed, \ .preWrapper\ was still unconditionally assigned the inline <code>\ wrapper. When \�\ is \ alse, restore the pre wrapper matching \ .preventSurroundingPre\ (\defaultPreWrapper\ or
opPreWrapper).

When html.InlineCode(false) was explicitly passed, f.preWrapper was still unconditionally assigned the inline <code> wrapper. When b is false, restore the pre wrapper matching f.preventSurroundingPre (nopPreWrapper or defaultPreWrapper).

Closes alecthomas#1526

Signed-off-by: Yshuro <yshuro1080@gmail.com>
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.

HTML InlineCode(false) still selects the inline wrapper

1 participant