From af1a533d1340f40f93ca2c2db716935dff80ac00 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Mar 2018 20:37:24 +0900 Subject: [PATCH] Fix bug --- src/client/app/common/views/components/post-html.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/post-html.ts b/src/client/app/common/views/components/post-html.ts index 98da86617d..39d783aac5 100644 --- a/src/client/app/common/views/components/post-html.ts +++ b/src/client/app/common/views/components/post-html.ts @@ -90,7 +90,11 @@ export default Vue.component('mk-post-html', { ]); case 'inline-code': - return createElement('code', token.html); + return createElement('code', { + domProps: { + innerHTML: token.html + } + }); case 'quote': const text2 = token.quote.replace(/(\r\n|\n|\r)/g, '\n');