markdown-ast
markdown-ast copied to clipboard
Avoid trimming newline between text node and inline block node
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.