Skip to content

Markdown > HTML: How to keep fenced DIVs from receiving heading classes? #9966

Answered by tarleb
PlainMartin asked this question in Q&A
Discussion options

You must be logged in to vote

Using an (possibly empty) HTML comment before the first header should give the desired result:

::: {.class1}

<!-- -->

# Hello world {.class2}

## Hello again {.class3}

:::

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by PlainMartin
Comment options

You must be logged in to vote
1 reply
@tarleb
Comment options

tarleb Jul 10, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants