diff --git a/TODO.md b/TODO.md index a66e7bf..54c7d6d 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,3 @@ # TODO -1. Fix wrapping on code blocks -2. Add filtering posts by tags +1. Add filtering posts by tags diff --git a/package-lock.json b/package-lock.json index 460c60b..4aefc65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5396,6 +5396,11 @@ "assert-plus": "^1.0.0" } }, + "github-markdown-css": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/github-markdown-css/-/github-markdown-css-3.0.1.tgz", + "integrity": "sha512-9G5CIPsHoyk5ObDsb/H4KTi23J8KE1oDd4KYU51qwqeM+lKWAiO7abpSgCkyWswgmSKBiuE7/4f8xUz7f2qAiQ==" + }, "glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", @@ -6757,7 +6762,7 @@ "bundled": true, "optional": true, "requires": { - "ms": "2.1.1" + "ms": "^2.1.1" } }, "deep-extend": { diff --git a/package.json b/package.json index 095d49d..c599789 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "dependencies": { "axios": "^0.18.0", + "github-markdown-css": "^3.0.1", "react": "^16.8.6", "react-dom": "^16.8.6", "react-markdown": "^4.0.8", diff --git a/src/components/About.js b/src/components/About.js index 102a83a..1f562b4 100644 --- a/src/components/About.js +++ b/src/components/About.js @@ -1,4 +1,5 @@ import React from 'react'; +import 'github-markdown-css' import ReactMarkdown from 'react-markdown'; import AboutMarkdown from '../static/about.md'; @@ -15,8 +16,8 @@ class About extends React.Component { render () { const { markdown } = this.state; return ( -