Skip to content

Having the TOC also include HTML headings <h> #7707

Closed Answered by facelessuser
MetalKnight56 asked this question in Q&A
Discussion options

You must be logged in to vote

Try to have it wrapped inside of these

Well, you are not using md_in_html correctly.

Let me explain how this works. Python Markdown does not process block HTML unless it has a markdown attribute.

So you want to process an <h3> inside a <div>? You need to ensure the parent elements also allow markdown processing.

<div markdown style="display: flex; align-items: flex-start;">
<div markdown style="flex: 1; margin-right: 20px; max-width:75%;">

<h3 markdown id="weapon-file">
<blockquote>Here's a simple example of a sword config:</blockquote>
Test Test Test

</div> <div style="flex: 1; max-width:25%;">

Test 2
<br>
Test 3
</div></div>

Replies: 2 comments 11 replies

Comment options

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

Comment options

You must be logged in to vote
10 replies
@facelessuser
Comment options

@facelessuser
Comment options

@MetalKnight56
Comment options

@facelessuser
Comment options

Answer selected by MetalKnight56
@facelessuser
Comment options

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