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

Some emoji not supported #199

Open
OttlikG opened this issue Jul 20, 2022 · 2 comments
Open

Some emoji not supported #199

OttlikG opened this issue Jul 20, 2022 · 2 comments

Comments

@OttlikG
Copy link

OttlikG commented Jul 20, 2022

I've tried :sparkles: but doesn't seem to render it correctly. It renders the text. When the unicode is rendered it displays ok.

@jaywcjlove
Copy link
Member

@OttlikG Example https://codesandbox.io/embed/react-markdown-preview-forked-voioz4?fontsize=14&hidenavigation=1&theme=dark

import React from "react";
import MarkdownPreview from "@uiw/react-markdown-preview";
+ import emoji from "remark-emoji";

const source = `## Markdown Preview

:sparkles:

`;

function Demo() {
  return (
    <div data-color-mode="light">
      <MarkdownPreview
        source={source}
+        remarkPlugins={[emoji]}
      />
    </div>
  );
}

@OttlikG
Copy link
Author

OttlikG commented Jul 20, 2022

Yes this solves the issue. 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

2 participants