aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/Content.js
diff options
context:
space:
mode:
authorludovicm67 <ludovicmuller1@gmail.com>2020-01-23 22:03:22 +0100
committerludovicm67 <ludovicmuller1@gmail.com>2020-01-23 22:03:22 +0100
commite364674850d527fe3a3c9bb8e3745ee619784636 (patch)
tree4402137d424dc90f2c09df3ef0950bb7ea41a241 /webui/src/Content.js
parent3413ee448a79686381624a414b18debd09120b9e (diff)
downloadgit-bug-e364674850d527fe3a3c9bb8e3745ee619784636.tar.gz
webui: fix width for pre tags in bug messages
Diffstat (limited to 'webui/src/Content.js')
-rw-r--r--webui/src/Content.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/webui/src/Content.js b/webui/src/Content.js
index 737c5ab2..3a6900bc 100644
--- a/webui/src/Content.js
+++ b/webui/src/Content.js
@@ -3,6 +3,7 @@ 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()
@@ -11,6 +12,7 @@ const Content = ({ markdown }) => {
.use(remark2react, {
remarkReactComponents: {
img: ImageTag,
+ pre: PreTag,
},
});