ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.05k stars 2.25k forks source link

Codeblock rendering Vue html (might be every html) renders a blank Codeblock (issue in generateJSON) #3092

Closed asafchn closed 1 year ago

asafchn commented 2 years ago

What’s the bug you are facing?

So, i have a file with the following markdown

image

ive parsed the markdown through an html parser and it came back as

image

till now everything is good but once i pass this through tiptap's generateJson function. i get the following output

image

and the codeblock itself looks as follow

image

Which browser was this experienced in? Are any special extensions installed?

Chrome and mozilla, we've been testing it throughout various different laptops

How can we reproduce the bug on our side?

create a codeblock, paste html in it (i used vue html specificly) save it to a file as html/markdown parse it to html pass it through generateJSON function mentioned here https://tiptap.dev/api/utilities/html and you'll get false output

Can you provide a CodeSandbox?

No response

What did you expect to happen?

I expected that the Codeblock will show the html inside the codeblock and no render it blankly

Anything to add? (optional)

No response

Did you update your dependencies?

Are you sponsoring us?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days