-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Any way to pass a css class or ID to an element? #84
Comments
The only way I can think of is registering a custom container (with https://vuepress.vuejs.org/config/#markdown-config + https://github.com/markdown-it/markdown-it-container) so you can wrap your table inside something: ::: wrapper id-of-the-table
// normal markdown table
::: |
Could someone add to their own instance markdown-it-attrs? Input: # header {.style-me}
paragraph {data-toggle=modal} Output: <h1 class="style-me">header</h1>
<p data-toggle="modal">paragraph</p> |
Have you actually tried this with a |
You can use markdown-it-attrs
Include it in config.js
Example input:
Output:
|
Not really an issue, more of a question, as I couldn't find anything about that. The problem is, I have diferent tables on diferent pages and would like to style them seperately, and it doesn't seem possible, as the only specific ID's I see are in the headings, which don't wrap anything more than the headings. I know I can use HTML and wrap the table in a div or something, but was avoiding to use it, as I prefer to keep the pages markdown only.
The text was updated successfully, but these errors were encountered: