ソースを参照

fix: allow target in markdown attrs (#1240)

NGPixel 5 年 前
コミット
46630e1638
1 ファイル変更1 行追加1 行削除
  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) {