Replies: 1 comment 5 replies
-
Hello @A3Bagged, That's a completely different ecosystem. Additionally, Python Markdown is quite strict when it comes to formatting, and a new empty line typically means there is a new paragraph Later in #7451 squidfunk noted there is hope in the future that Material would support such kind of thing, but it does not currently. I'm unaware of any Markdown extensions which do the exact thing you want 🤔 You can check the catalog. Perhaps you could hack the implementation of the Neoteroi timeline extension. Apart of an extension you could also try a plugin / hook which would modify the Makrdown and adjust the HTML formatting to match the strictness of the Python Markdown implementation. I've done so in the latest_blog_posts plugin of the mkdocs-nype theme. The plugin / hook approach is simpler to make imo, however it has to scan the Markdown content from scratch, so the "upper" performance is lower than that of an extension, which would work on tokens (I think 😅). iirc the plugin I mentioned only works on the homepage, so I never needed to worry about that. |
Beta Was this translation helpful? Give feedback.
-
Hello, sorry if this has been implemented already but i couldn't find a fix. I did find the following:
#514 and #7451
Preview:
Example of a website im trying to copy a function from: Thulite
Here he uses a ordered list for setup steps, but the markdown is totally different and im trying to implement something like that.
I've tried and that just throws
<p><steps></steps></p>
above everything else.It only worked when there was text directly next to
<steps>
without breaks.Example markdown: Click here
Result:
This doesnt render a
<steps>
HTML Block at all but rather creates a<ol>
list with a role and class applied.Is this possible with Material? or has it been implemented through a markdown extension? (sorry if it is)
I tried adding:
But that is for custom HTML blocks that Thulite doesn't use and currently is not being procecced well in the .md file
unless its a small text like you would use
<strong>
and not for paragraphs. ie.Results in:
i've added a red background in css by:
steps, .steps { background:red;}
to debugI do know that i can change
<step>
to<ol class="steps">
and style it in CSS but the page writing & markdown won't be used by me, i just do the coding. So using<steps>
is easier for the user.Sincerely, Chris
Beta Was this translation helpful? Give feedback.
All reactions