aboutsummaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-01-09 14:58:38 -0800
committerChristine Dodrill <me@christine.website>2017-01-09 14:58:38 -0800
commit77625d0878ec67b66a112546405e4fcfeb4ca71f (patch)
tree80dd46f37847347c2243ec22cbb68448c81a6a47 /frontend/src
parent5c6d5d13ae3b02d552275db88630a4a2ecd1927f (diff)
downloadxesite-77625d0878ec67b66a112546405e4fcfeb4ca71f.tar.xz
xesite-77625d0878ec67b66a112546405e4fcfeb4ca71f.zip
frontend: fix bulletpoints in blogposts and resume
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/Utils.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/frontend/src/Utils.js b/frontend/src/Utils.js
index 942f75c..61023c8 100644
--- a/frontend/src/Utils.js
+++ b/frontend/src/Utils.js
@@ -1,6 +1,16 @@
// Module App.BlogEntry
+showdown = require("showdown");
+
+showdown.extension('blog', function() {
+ return [{
+ type: 'output',
+ regex: /<ul>/g,
+ replace: '<ul class="browser-default">'
+ }];
+});
+
exports.mdify = function(corpus) {
- var converter = new showdown.Converter()
+ var converter = new showdown.Converter({ extensions: ['blog'] });
return converter.makeHtml(corpus);
-}
+};