arve0 / markdown-it-attrs

Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes
MIT License
300 stars 58 forks source link

Propagation of Attributes in Markdown-it-container #111

Closed StefanZander closed 2 years ago

StefanZander commented 4 years ago

I am using both extensions markdown-it-attrs and markdown-it-container in conjunction with Marp in order to create and render my lecture slides using markdown.

When combining both extensions, e.g.,

::: definition
some def text...

Source: some source text {.source}
:::

the .source class will be propagated to the definition container (the parent div) rather than to the paragraph that represents the source text.

The problem as described in Post 1 in Issue #72 is still present to me.

I also tried the workaround proposed by @mb21 in Issue #72 but it does not work in my setup.

Since I really like both extensions, I hope there is another way of making both work together.

Thanks in advance.

arve0 commented 4 years ago

Hi! I'm sorry, but I do not have time to debug your bug. If you find out that the error is on markdown-it-attrs, I would be glad to get an update.

thom4parisot commented 3 years ago

I opened a pull request with a failing test case.

I have not figured out yet if it's a bug, or a missing feature.

What's tough thoug, is this syntax is added via an additional plugin, it's not part of markdown-it core πŸ˜Άβ€πŸŒ«οΈ

arve0 commented 2 years ago

Hi πŸ™‚ Sorry to inform that I do not have time to investigate this issue. Feel free to reopen issue if you want to take a stab yourself.