Custom Contains - Custom rendering #298

Open
opened 2026-01-29 14:33:07 +00:00 by claunia · 0 comments
Owner

Originally created by @LukeTOBrien on GitHub (May 29, 2019).

Hello,

I am moving my project from NodeJS using Markdown-it to .NET Core using Markdig.

I am using the Markdown-it-containers plugin.
As you can see from the Example on that page, the plugin allows custom rendering, so instead of div the developer can use any element they choose.

It my project I make use of this in quite a few cases, for example I have Markdown like this:

::: notes

:::

This renders as:

<aside class="notes">
</aside>

Would there be anyway to do this in Markdig?
I notice in you current spec you do not specify a mechanism for custom rendering.

Thanks

Originally created by @LukeTOBrien on GitHub (May 29, 2019). Hello, I am moving my project from NodeJS using Markdown-it to .NET Core using Markdig. I am using the [Markdown-it-containers](https://github.com/markdown-it/markdown-it-container) plugin. As you can see from the **Example** on that page, the plugin allows custom rendering, so instead of `div` the developer can use any element they choose. It my project I make use of this in quite a few cases, for example I have Markdown like this: ```Markdown ::: notes ::: ``` This renders as: ```HTML <aside class="notes"> </aside> ``` Would there be anyway to do this in Markdig? I notice in you [current spec](https://github.com/lunet-io/markdig/blob/master/src/Markdig.Tests/Specs/CustomContainerSpecs.md) you do not specify a mechanism for custom rendering. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#298