Skip to content

First empty line in code block is not styled #641

@OzymandiasTheGreat

Description

@OzymandiasTheGreat

With text value set to \n and markdown ranges set to [{ type: "pre", start: 0, length: 1 }] there's no visible styling. Adding another new line and extending the range, second line is styled correctly.

Context: I'm implementing a WYSIWYG rich text editor on top of live-markdown and when toggling code block there's no visual indication if it's the first line. Once the user starts typing styling is applied correctly, so this isn't a blocker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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