Replies: 1 comment
-
I end up with creating a new container div, and container div is working as expected. // .vitepress/config.js
import { withMermaid } from "vitepress-plugin-mermaid";
export default withMermaid({
....
markdown: {
typographer: true,
config: (md) => {
...
md.use(require('markdown-it-container'), 'div');
}
},
lastUpdated: true
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add some style to the container. As below demo shows, markdown-it-attrs cannot pass css class to markdown container.
Is there a way to use a generic container, similar to a DIV, and can accept markdown-it-attrs? Do I need to define my own container for this?
Beta Was this translation helpful? Give feedback.
All reactions