Skip to content

[Feature Request] Add support for async remark plugins #61

@LouisDvr

Description

@LouisDvr

Describe your use case
processor.runSync(...) will throw if any provided remark plugin is async (i.e., returns a Promise during run). Since remarkPlugins is a public prop meant to support the remark ecosystem, this can cause runtime crashes for valid plugins.

Describe the solution you'd like
Export an additional MarkdownAsync component for support of async plugins (see react-markdown's MarkdownHooks component for an example of implementation for client side execution)

Sample markdown file
Attach a link to your sample markdown file.

Additional context
Dependency on PR #60 being merged

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions