From 77625d0878ec67b66a112546405e4fcfeb4ca71f Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 9 Jan 2017 14:58:38 -0800 Subject: [PATCH] frontend: fix bulletpoints in blogposts and resume --- frontend/package.json | 1 + frontend/src/Utils.js | 14 ++++++++++++-- frontend/support/index.html | 3 +-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 36e1c8e..9de0f7d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -41,6 +41,7 @@ "react-document-title": "^2.0.2", "react-dom": "^15.0.0", "rimraf": "^2.5.2", + "showdown": "^1.6.0", "webpack": "^2.1.0-beta.25", "webpack-uglify-js-plugin": "^1.1.9" }, 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: /