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: /