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:
parent
c59e4f31e2
commit
a04ded5506
6 changed files with 134 additions and 71 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue