Skip to content

Allow boolean attribute syntax in markdown-in-html#701

Open
Crozzers wants to merge 1 commit intotrentm:masterfrom
Crozzers:better-markdown-attr
Open

Allow boolean attribute syntax in markdown-in-html#701
Crozzers wants to merge 1 commit intotrentm:masterfrom
Crozzers:better-markdown-attr

Conversation

@Crozzers
Copy link
Copy Markdown
Contributor

@Crozzers Crozzers commented May 2, 2026

This PR changes the regex used in markdown-in-html to enable a boolean attribute syntax.

Currently, you must trigger the extra like this:

<span markdown="1">My _text_</span>

Since markdown-in-html doesn't take any options, having to spell out the ="1" is not needed.
This PR enables the following syntaxes:

<span markdown=1>_Slightly_ shorter.</span>
<span markdown>_Even_ shorter</span>

And I also added python 3.14 to the test suite, since that's out now

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.

1 participant