Skip to content

When headingStyle is linebreak / hashify header elements (h[1-6]) are remained as it is.. #5

@gs-kgopi

Description

@gs-kgopi

Issue: If styleConfig: headingStyle = 'linebreak' || 'hashify', header elements are not getting processed i.e elements remains as it is.

Content used: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics

Code: htmlToPlainText(plainText.html(), {headingStyle: 'linebreak'});

Reason I found: The corresponding regular expressions are not matching the header elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions