result without top-level paragraph for single lines? #1890
-
I am confused by the interpretation of paragraphs in pymdown. the front page has the example: text = "A link https://google.com" which (thanks to magic link) gives
why is the output surrounded by according to the spec the expected output would be |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, according the Markdown spec, a paragraph gets wrapped in This isn't a pymdown question and has nothing to do with MagicLink either. This is just how Markdown works. This site shows multiple Markdown parsers doing the same thing with a single sentence: https://babelmark.github.io/?text=Some+text. |
Beta Was this translation helpful? Give feedback.
No, according the Markdown spec, a paragraph gets wrapped in
<p></p>
. https://daringfireball.net/projects/markdown/syntax#pThis isn't a pymdown question and has nothing to do with MagicLink either. This is just how Markdown works.
This site shows multiple Markdown parsers doing the same thing with a single sentence: https://babelmark.github.io/?text=Some+text.