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 ( -
- +
+
); } diff --git a/src/components/Post.js b/src/components/Post.js index 777a6c1..a98d991 100644 --- a/src/components/Post.js +++ b/src/components/Post.js @@ -1,5 +1,6 @@ import React from 'react'; import ReactMarkdown from 'react-markdown'; +import 'github-markdown-css' import { connect } from 'react-redux'; import { fetchPost } from '../actions'; import { Link } from 'react-router-dom'; @@ -32,7 +33,9 @@ class Post extends React.Component {

{post.title}

By {post.author}

Posted {post.time_published}

- +
+ +
diff --git a/src/components/PostList.js b/src/components/PostList.js index 298e527..74f675a 100644 --- a/src/components/PostList.js +++ b/src/components/PostList.js @@ -1,5 +1,6 @@ import React from 'react'; import ReactMarkdown from 'react-markdown'; +import 'github-markdown-css' import { connect } from 'react-redux'; import { fetchPosts } from '../actions'; import { Link } from 'react-router-dom'; @@ -22,7 +23,9 @@ class PostList extends React.Component {

{post.title}

By {post.author}

Posted {post.time_published}

- +
+ +
diff --git a/src/components/User.js b/src/components/User.js index 4fbb0a8..c547143 100644 --- a/src/components/User.js +++ b/src/components/User.js @@ -1,5 +1,6 @@ import React from 'react'; import ReactMarkdown from 'react-markdown'; +import 'github-markdown-css' import { connect } from 'react-redux'; import { fetchUserProfile } from '../actions'; import { Link } from 'react-router-dom'; @@ -26,7 +27,9 @@ class User extends React.Component {

{post.title}

By {post.author}

Posted {post.time_published}

- +
+ +