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
Describe your use case
processor.runSync(...)will throw if any provided remark plugin is async (i.e., returns a Promise duringrun). SinceremarkPluginsis 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
MarkdownAsynccomponent for support of async plugins (see react-markdown'sMarkdownHookscomponent 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