erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.76k stars 1.12k forks source link

Bad render header/tags #827

Open Zavy86 opened 2 years ago

Zavy86 commented 2 years ago

Hi, there is probably a bug in rendering the tags instead of the headers.

Header 1 is a # followed by a space. When #diary is rendered as a header and should not.

150785042-63fe625a-66ca-47f0-85a0-188651a5b551

150785119-073638b4-1799-47e1-92e3-f5b23d69f2e3

Zavy86 commented 2 years ago

Ref: https://github.com/Zavy86/WikiDocs/issues/27

aidantwoods commented 2 years ago

There is $parsedown->setStrictMode(true), which will turn off accommodations like this that aren't in spec (this is the only one at present).

Zavy86 commented 2 years ago

Hi, in version 1.7.4 is not present this method. Will it be available in the next release?