diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-29 20:37:24 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-29 20:37:24 +0900 |
| commit | af1a533d1340f40f93ca2c2db716935dff80ac00 (patch) | |
| tree | 14dd1c7a9b02d429056c876ee2c03e265438bbd7 /src/client | |
| parent | :v: (diff) | |
| download | sharkey-af1a533d1340f40f93ca2c2db716935dff80ac00.tar.gz sharkey-af1a533d1340f40f93ca2c2db716935dff80ac00.tar.bz2 sharkey-af1a533d1340f40f93ca2c2db716935dff80ac00.zip | |
Fix bug
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/post-html.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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'); |