markdown-ast icon indicating copy to clipboard operation
markdown-ast copied to clipboard

Avoid trimming newline between text node and inline block node

Open aleclarson opened this issue 7 years ago • 0 comments

For example, when a\n*b* is parsed, the line break before the italic text is lost.

To fix this, we should only trim trailing newlines when we know a block node is next.

aleclarson avatar Dec 02 '18 17:12 aleclarson