Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remark directive usage #257

Open
christianpredebon opened this issue Jan 26, 2024 · 0 comments
Open

Remark directive usage #257

christianpredebon opened this issue Jan 26, 2024 · 0 comments

Comments

@christianpredebon
Copy link

Hi!
I would like to use the remark-directive plugin with the markdown previewer (just for the ::: warning syntax) but I cannot understand how to do it. Is there any useful example or something?

function MarkdownEditorPreview({ source }: MarkdownEditorPreviewProps) {
  return (
    <MarkdownEditorPreviewElement
      source={source}
      rehypeRewrite={avoidHeaderLink}
      wrapperElement={{
        "data-color-mode": "light",
      }}
      remarkPlugins={[remarkDirective]}
    />
  );
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant