zerodevx / zero-md

Ridiculously simple zero-config markdown displayer
https://zerodevx.github.io/zero-md/
ISC License
437 stars 48 forks source link

Markdown not translated into HTML #98

Closed epatrick closed 1 year ago

epatrick commented 1 year ago

Curious: given this jsfiddle example (copied from the Basic Usage), I expected to see the markdown translated into HTML.

I suspect I missed something very basic?

Thanks in advance!

zerodevx commented 1 year ago

It's a whitespace issue. Per markdown specs, new line starting with 4 spaces represents a code block. I guess the example should remove it.

epatrick commented 1 year ago

Doh - simple indeed. Thanks!