Python vs JS result mismatch #1085
Unanswered
amjadtaleb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this part of a document:
# [Authors](#authors) {#authors .authors}
that renders to the result below in JavaScript using markdown-it-attrs@4.1.6:
<h1 id="authors" class="authors"><a href="#authors">Authors</a></h1>
and to this result in python using mdit_py_plugins.attrs.attrs_plugin:
<h1><a href="#authors">Authors</a> {#authors .authors}</h1>
I use JS for input, where users can see a live preview of their text, and render it somewhere else using python.
I checked the JS code and it explicitly trims the blank space between blocks (or that's what I could understand from it), is there a option that I can set to make the mdit_py_plugins.attrs.attrs_plugin follow what the js plugin does?
Beta Was this translation helpful? Give feedback.
All reactions