Skip to content

Make the MarkdownParser importable #58

@ViggieM

Description

@ViggieM

Hello 🙂

Is there a way to import the MarkdownParser class or make it exportable?

The reason is, i would like to render the HTML without the need of initializing an OverType instance. E.g.:

// do this directly
MarkdownParser.parse(bookmark.description)

// instead of
const overtype = new OverType(node, {value: '... some markdown ...'}
overtype.getRenderedHTML()

Then I would not need to do any utility function that generates a node on the fly or import an additional library.

Any suggestions how to do this? I would also be happy to help with a PR in case it seems useful.
Thank you in advance 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions