decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

fix(markdown): copying html into markdown #7290

Closed hip3r closed 1 week ago

hip3r commented 1 month ago

closes #7233

Summary

When pasting html into markdown, keep styles instead of plain text. Code copied from official example https://github.com/ianstormtaylor/slate/blob/main/site/examples/ts/paste-html.tsx

Test plan

image image

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged) image

mattcen commented 4 weeks ago

Nice work on this! Just build a version with this merged in and it coped fine with the simple Google Doc I threw at it! Thanks for your efforts!