mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 02:09:03 +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
|
@ -52,7 +52,10 @@ require('bootstrap-fileinput');
|
|||
|
||||
require('./datatables.js');
|
||||
|
||||
window.bootbox = require('bootbox')
|
||||
window.bootbox = require('bootbox');
|
||||
|
||||
require("marked");
|
||||
window.DOMPurify = require("dompurify");
|
||||
|
||||
// Includes required for tag input
|
||||
require('./tagsinput.js');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue