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

Save full html layout from MD editor using React #417

Open
StasSpawn opened this issue Jul 18, 2022 · 1 comment
Open

Save full html layout from MD editor using React #417

StasSpawn opened this issue Jul 18, 2022 · 1 comment

Comments

@StasSpawn
Copy link

How can I save full html layout with all tags ( , ,

    ,
  • , etc) using React?

    Because by default value of Markdown is String.

    In JS we have cloneNode. But then is wont be a React application.

    2022-07-18_131423

    Here, i need to save layout like in the bottom example.
    But now if I take value of Markdown - it return me only simple String.

@jaywcjlove
Copy link
Member

@StasSpawn markdown handed over to react-markdown-preview for rendering

If you are converting to HTML, use markdown-to-html.

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