Skip to content

Make the MarkdownParser importable聽#58

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 馃檪

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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