Skip to content

[EuiMarkdownEditor] Enhancement request: "Newlines -> line breaks" as a default plugin #5141

@i-a-n

Description

@i-a-n

I notice that, since EuiMarkdownEditor is using Remark to process/render markdown, it follows Remark's default behavior and does not render single newlines as actual line breaks (<br>):

markdowneditor

I know this behavior is technically up to spec, and GitHub et al. are doing their own extra processing to make newlines into <br>s, but would you consider adding a default plugin to mimic this newline -> line break processing? There is a Remark plugin called remark-breaks which already does this, and should hopefully be simple to implement. Would this be something you'd consider, or will we need to create our own processing plugin for this?

Metadata

Metadata

Assignees

No one assigned

    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