feat: set up basic typography system for Markdown content

This commit is contained in:
Jean-Philippe Sirois
2019-07-29 14:11:56 -04:00
parent 5515ee2172
commit f4384afdca
3 changed files with 92 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import React from "react"
import { graphql } from "gatsby"
import { Markdown } from "../components/Markdown"
import { SEO } from "../components/SEO"
import { DocsLayout } from "../components/DocsLayout"
@@ -10,7 +11,7 @@ function LanguagePost({ data }: any) {
return (
<DocsLayout>
<SEO title={frontmatter.title} />
<div dangerouslySetInnerHTML={{ __html: html }} />
<Markdown content={html} />
</DocsLayout>
)
}