Open raine opened 5 years ago
--flavor markdown
is a nasty workaround with it's own downsides:
For example, fenced code blocks don't work when using the markdown utility or the Markdown class with the --flavor markdown option.
Needs fixing IMHO
Yeah. I agree that's bad. Surprised that I didn't test that -- or maybe it used to work?
On Sat, May 23, 2020 at 10:29 AM Inan Hira notifications@github.com wrote:
--flavor markdown is a nasty workaround with it's own downsides:
For example, fenced code blocks don't work when using the markdown utility or the Markdown class with the --flavor markdown option.
Needs fixing IMHO
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cwjohan/markdown-to-html/issues/31#issuecomment-633101164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7GVXD4GRJCPI5Q4OWW3SLRTABWDANCNFSM4FXYUVNA .
Markdown in text format is often hard wrapped at some width (typically 80 characters), to maintain readability with editors that don't no soft wrapping.
markdown-to-html
incorrectly converts line breaks to<br />
tags.This is not how github works, as evident in the following gist. Just compare rendered and raw versions, to see that github definitely does not interpret line breaks as
<br/>
.https://gist.github.com/raine/dd9a28f763b4a61bc0f56967bb7ff56a https://gist.githubusercontent.com/raine/dd9a28f763b4a61bc0f56967bb7ff56a/raw/9d8517f1518cfb34d769eced59cce214a3889926/test.md
input
output