Skip to content

[IDEA] Allow empty lines to be rendered #9871

@linonetwo

Description

@linonetwo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    newfeatureNew functionality that does not presently exist

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions