frontend: fix bulletpoints in blogposts and resume
This commit is contained in:
parent
5c6d5d13ae
commit
77625d0878
|
@ -41,6 +41,7 @@
|
||||||
"react-document-title": "^2.0.2",
|
"react-document-title": "^2.0.2",
|
||||||
"react-dom": "^15.0.0",
|
"react-dom": "^15.0.0",
|
||||||
"rimraf": "^2.5.2",
|
"rimraf": "^2.5.2",
|
||||||
|
"showdown": "^1.6.0",
|
||||||
"webpack": "^2.1.0-beta.25",
|
"webpack": "^2.1.0-beta.25",
|
||||||
"webpack-uglify-js-plugin": "^1.1.9"
|
"webpack-uglify-js-plugin": "^1.1.9"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
// Module App.BlogEntry
|
// 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) {
|
exports.mdify = function(corpus) {
|
||||||
var converter = new showdown.Converter()
|
var converter = new showdown.Converter({ extensions: ['blog'] });
|
||||||
return converter.makeHtml(corpus);
|
return converter.makeHtml(corpus);
|
||||||
}
|
};
|
||||||
|
|
|
@ -6,14 +6,13 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Christine Dodrill</title>
|
<title>Christine Dodrill</title>
|
||||||
|
|
||||||
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
|
||||||
<link rel="stylesheet" href="/static/css/main.css">
|
<link rel="stylesheet" href="/static/css/main.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.5.1/showdown.min.js"></script>
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue