implemented jump feature to toc, removed marked dependency, changed white link class name, removed unused css, moved toc data from map to individual json files

This commit is contained in:
Kim, Jimin 2021-08-10 15:55:13 +09:00
parent c59e4f31e2
commit a04ded5506
6 changed files with 134 additions and 71 deletions

View file

@ -1,5 +1,4 @@
import React from "react"
import marked from "marked"
import styled from "styled-components"
import { Link } from "react-router-dom"
@ -118,9 +117,9 @@ export default class PostCard extends React.Component<PostCardProps> {
<hr />
<StyledPostCardContent
className="link-color"
className="white-link"
dangerouslySetInnerHTML={{
__html: marked(this.props.postData.preview),
__html: this.props.postData.preview,
}}
></StyledPostCardContent>
<small>