Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATX-style cannot specify attributes if the header has inline syntax #24

Open
akabekobeko opened this issue Mar 1, 2021 · 1 comment

Comments

@akabekobeko
Copy link

akabekobeko commented Mar 1, 2021

ATX-style cannot specify attributes if the header has inline syntax.

Markdown:

# Header 1 {#header-1}

# Header 2
{#header-2}

# Header 3 **with text** {#header-3}

Expected:

<h1 id="header-1">Header 1</h1>
<h1 id="header-2">Header 2</h1>
<h1 id="header-3">Header 3 <strong>with text</strong></h1>

Actual:

<h1 id="header-1">Header 1</h1>
<h1 id="header-2">Header 2</h1>
<h1>Header 3 <strong>with text</strong> {#header-3}</h1>

{# header-3} remains as text content.

@arobase-che
Copy link
Owner

Hi \o

Looks like a bug to me.

The project need a total factorization since remark 13.

It will definitively be a new test case.
Thank You !

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

No branches or pull requests

2 participants