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
I tried to add empty blocks into a page and when it's converting, it's ignoring it. I tried to activate the breaks option from marked without sucess. Maybe du since the text array from the content is empty?
The text was updated successfully, but these errors were encountered:
There are a couple of workarounds in the linked issue (eg: customizing a lexer) to handle this. Or if you'd like and if you think it makes sense, I'm welcoming PR to support this from blocks-markdown-parser.
Basically for the PR, I'd like to see:
MarkdownParser accepts a new option: emptyParagraphToNonBreakingSpace (I mean you can come up with a better name if you'd like 😅)
Based on this new option, and if paragraph.text is an [], then return instead.
Hi,
I tried to add empty blocks into a page and when it's converting, it's ignoring it. I tried to activate the breaks option from marked without sucess. Maybe du since the text array from the content is empty?
The text was updated successfully, but these errors were encountered: