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

Incompatibility with markdown-it-attrs #39

Closed
bendavis78 opened this issue Feb 11, 2021 · 1 comment
Closed

Incompatibility with markdown-it-attrs #39

bendavis78 opened this issue Feb 11, 2021 · 1 comment

Comments

@bendavis78
Copy link

bendavis78 commented Feb 11, 2021

With markdown-it-attrs, a paragraph element is styled like so:

# some heading

This is a paragraph {.some-class-name}
<h1>some heading</h1>
<p class="some-class-name">This is a paragraph</p>

However, in a container, the attribute is swallowed or not applied:

::: my-container
# some heading

This is a paragraph {.some-class-name}
:::
<div class="my-container">
  <h1>some heading</h1>
  <p>This is a paragraph</p>
</div>

Strangely, other methods of using markdown-it-attrs works fine, eg, spans:

::: my-container
This is a paragraph [this is a span]{.some-class-name}
:::
<div class="my-container">
  <p>This is a paragraph <span class="some-class-name">this is a span</span></p>
</div>
@puzrin
Copy link
Member

puzrin commented Feb 17, 2021

Sorry, can't help with third party plugins. You'd better ask markdown-it-attrs author.

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