diff options
| author | Christine Dodrill <me@christine.website> | 2017-01-09 14:58:38 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2017-01-09 14:58:38 -0800 |
| commit | 77625d0878ec67b66a112546405e4fcfeb4ca71f (patch) | |
| tree | 80dd46f37847347c2243ec22cbb68448c81a6a47 /frontend/src | |
| parent | 5c6d5d13ae3b02d552275db88630a4a2ecd1927f (diff) | |
| download | xesite-77625d0878ec67b66a112546405e4fcfeb4ca71f.tar.xz xesite-77625d0878ec67b66a112546405e4fcfeb4ca71f.zip | |
frontend: fix bulletpoints in blogposts and resume
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/Utils.js | 14 |
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); -} +}; |
