MichaelHatherly / CommonMark.jl

A CommonMark-compliant Markdown parser for Julia.
Other
84 stars 11 forks source link

Newlines disappearing from code blocks #5

Closed bramtayl closed 4 years ago

bramtayl commented 4 years ago

Apologies if this is an option or intended. Newlines seem to be disappearing from code-blocks:

using CommonMark

markdown(stdout, Parser()("""
Docstring

\```jldoctest
julia> a = 1
1

julia> b = 2
2
\```
"""))
MichaelHatherly commented 4 years ago

Good catch, wasn't intended. Fix incoming shortly.

MichaelHatherly commented 4 years ago

Should be sorted @bramtayl, you needing a tag with this fix included, or are you happy working of master for now?

bramtayl commented 4 years ago

Um, there's not a huge rush because I'm still messing around with the PR to JuliaFormatter, but sooner rather than later would be great!

MichaelHatherly commented 4 years ago

I'll hold off for a few days then.