From a2fe22e9ca1a5364f4064b470c2d87663d473a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sat, 30 Jan 2021 12:14:55 +0900 Subject: [PATCH] fix: allowed path tag --- components/Markdown.tsx | 2 +- utils/ShowdownExtensions.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/Markdown.tsx b/components/Markdown.tsx index f7ca5ba..116fe83 100644 --- a/components/Markdown.tsx +++ b/components/Markdown.tsx @@ -13,7 +13,7 @@ const Markdown = ({ text }:MarkdownProps):JSX.Element => { 'em', 'i', 'kbd', 'mark', 'q', 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr', 'caption', 'col', 'colgroup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'del', - 'img', 'svg', 'input' + 'img', 'svg', 'path', 'input' ], allowedAttributes: false })} /> diff --git a/utils/ShowdownExtensions.ts b/utils/ShowdownExtensions.ts index 4541144..174f5c8 100644 --- a/utils/ShowdownExtensions.ts +++ b/utils/ShowdownExtensions.ts @@ -4,7 +4,11 @@ export const anchorHeader = { replace: function (__match, id:string, title:string, level:number) { // github anchor style - const octicon_html = `` + const octicon_html = `` return `${octicon_html}${title}` }