mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Render markdown on the client side and use DOMPurify to prevent XSS.,
The parsedown parser has problems with links in <>, so we use marked.js now which is more conform with (GFM) CommonMark and offers more feautures. Also with the usage of DOMPurify you can now use every HTML tag in Markdown without need to worry about XSS.
This commit is contained in:
parent
7ec406d4a1
commit
be8f074ca5
9 changed files with 93 additions and 32 deletions
2
public/ckeditor/plugins/markdown/js/purify.min.js
vendored
Normal file
2
public/ckeditor/plugins/markdown/js/purify.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue