Explorar el Código

fix: allow target in markdown attrs (#1240)

NGPixel hace 5 años
padre
commit
46630e1638
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {