You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing Markdown, mistletoe doesn't parse inlines across line boundaries. Example source:
here is a file with *emph* and also
it will have *emph across
lines.* uh-oh. Let's try **strong** and
also, of course, **strong across
lines.** uh-oh-uh-oh.
And example output:
<p>here is a file with <em>emph</em> and also
it will have *emph across
lines.* uh-oh. Let's try <strong>strong</strong> and
also, of course, **strong across
lines.** uh-oh-uh-oh.
</p>
Most parsers recognize inlines over newlines. It'd be nice if mistletoe did, too. Would it be as simple as setting a re flag?
The text was updated successfully, but these errors were encountered:
Yeah, I added re.DOTALL flags across all the builtin token types. Some regexes also need to be changed, and there might be some performance implications, but CommonMark does it, so I'm keeping this feature.
Let me know if there's anything weird; I'll do a minor version release to pypi later. Thank you!
When parsing Markdown, mistletoe doesn't parse inlines across line boundaries. Example source:
And example output:
Most parsers recognize inlines over newlines. It'd be nice if mistletoe did, too. Would it be as simple as setting a
re
flag?The text was updated successfully, but these errors were encountered: