Skip to content

Expose marked renderer to allow marked.use() #514

@aardgoose

Description

@aardgoose

Is your feature request related to a problem? Please describe.

The renderingConfig: { markedOptions: } option doesn't allow extensions to be passed to marked.

It appears that using the marked.use() function directly is the only way to add extensions without the complexity of creating another marked instance and providing that as a preview rendering function.

Describe the solution you'd like

An accessor function such as easyMDE.getMarked() would be ideal.

Describe alternatives you've considered

Passing a separate instance of marked in, but this increases the code size and seems needlessly complicated.

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