소스 검색

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