Skip to content

lheading does not always reset parentType #1130

@buildwithzephyr

Description

@buildwithzephyr

The lheading rule starts by setting the parent type to paragraph.

const oldParentType = state.parentType
state.parentType = 'paragraph' // use paragraph to match terminatorRules

However, if it does not match, it fails to reset the parent type.

if (!level) {
// Didn't find valid underline
return false
}

This can break other rules.

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