Skip to content
Discussion options

You must be logged in to vote

So, I will give some insight into the recent surfacing of this and state it is not a bug. Admonitions, in this format, have always required that the content be indented. Additionally, indented blocks are generally treated as code blocks in Markdown. So to have indented code blocks under an admonition you would have to indent twice.

Now, there was a bug that I recently fixed in admonitions. Indented code blocks were not treated properly. Python-Markdown/markdown#1329

Now that this has been fixed, indented code blocks now work properly when they are the first block under admonitions, which is likely what you are seeing.

With all of that said, I've never been a fan of having to indent the all

Replies: 4 comments 25 replies

Comment options

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

alexvoss Oct 10, 2023
Collaborator Sponsor

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@alexvoss
Comment options

alexvoss Oct 10, 2023
Collaborator Sponsor

@facelessuser
Comment options

@facelessuser
Comment options

@alexvoss
Comment options

alexvoss Oct 10, 2023
Collaborator Sponsor

@facelessuser
Comment options

Answer selected by StarfallProjects
Comment options

You must be logged in to vote
16 replies
@alexvoss
Comment options

alexvoss Nov 6, 2023
Collaborator Sponsor

@facelessuser
Comment options

@alexvoss
Comment options

alexvoss Nov 6, 2023
Collaborator Sponsor

@facelessuser
Comment options

@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
4 participants