Browse Source

fix: allow target in markdown attrs (#1240)

NGPixel 5 năm trước cách đây
mục cha
commit
46630e1638
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/modules/rendering/markdown-core/renderer.js

+ 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) {