Is your idea related to a problem? Please describe.
WYSIWYG editor allows pressing Enter to create empty line, but if wikitext rule doesn't allows multiple empty line, user created empty lines will suddently disappear.
Describe the solution you'd like
Explicitly add "blankline" to AST, so rendere and editor knows there are blank lines in the source file.
Describe alternatives you've considered
Add feature option like preserveBlankLines, enable when WYSIWYG editor is parsing the wikitext.
Additional context
I'm fixing WYSIWYG editor bug that new line disappear. In a WYSIWYG editor, user may press multiple Enter to create an empty space, for thoughts or leave blank, but it will collapse if underlying syntax don't support it.
Is your idea related to a problem? Please describe.
WYSIWYG editor allows pressing Enter to create empty line, but if wikitext rule doesn't allows multiple empty line, user created empty lines will suddently disappear.
Describe the solution you'd like
Explicitly add "blankline" to AST, so rendere and editor knows there are blank lines in the source file.
Describe alternatives you've considered
Add feature option like
preserveBlankLines, enable when WYSIWYG editor is parsing the wikitext.Additional context
I'm fixing WYSIWYG editor bug that new line disappear. In a WYSIWYG editor, user may press multiple Enter to create an empty space, for thoughts or leave blank, but it will collapse if underlying syntax don't support it.