Przeglądaj źródła

fix: allow target in markdown attrs (#1240)

NGPixel 5 lat temu
rodzic
commit
46630e1638

+ 1 - 1
server/modules/rendering/markdown-core/renderer.js

@@ -31,7 +31,7 @@ module.exports = {
     })
 
     mkdown.use(mdAttrs, {
-      allowedAttributes: ['id', 'class']
+      allowedAttributes: ['id', 'class', 'target']
     })
 
     for (let child of this.children) {