diff options
author | Michael Muré <batolettre@gmail.com> | 2020-01-23 22:52:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 22:52:21 +0100 |
commit | ff33e62f65d0a4764358352492f46daccf961f93 (patch) | |
tree | 4402137d424dc90f2c09df3ef0950bb7ea41a241 /webui/src/Content.js | |
parent | 20080aa0e485412b07e1942798b264030e744381 (diff) | |
parent | e364674850d527fe3a3c9bb8e3745ee619784636 (diff) | |
download | git-bug-ff33e62f65d0a4764358352492f46daccf961f93.tar.gz |
Merge pull request #299 from ludovicm67/fix-webui
Fix column overflow in webui
Diffstat (limited to 'webui/src/Content.js')
-rw-r--r-- | webui/src/Content.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webui/src/Content.js b/webui/src/Content.js index 19f57631..3a6900bc 100644 --- a/webui/src/Content.js +++ b/webui/src/Content.js @@ -2,12 +2,19 @@ import unified from 'unified'; import parse from 'remark-parse'; import html from 'remark-html'; import remark2react from 'remark-react'; +import ImageTag from './tag/ImageTag'; +import PreTag from './tag/PreTag'; const Content = ({ markdown }) => { const processor = unified() .use(parse) .use(html) - .use(remark2react); + .use(remark2react, { + remarkReactComponents: { + img: ImageTag, + pre: PreTag, + }, + }); return processor.processSync(markdown).contents; }; |