Renamed inlineComponents to richTextComponents as this is closer to what they are
This commit was merged in pull request #16.
This commit is contained in:
@@ -18,7 +18,7 @@ import format from "date-fns/format";
|
||||
import { TinaMarkdown } from "tinacms/dist/rich-text";
|
||||
import { PostType } from "../../pages/posts/[filename]";
|
||||
import { tinaField } from "tinacms/dist/react";
|
||||
import inlineComponents from "../inline/inline-definitions";
|
||||
import richTextComponents from "../rich-text/rich-text-definitions";
|
||||
|
||||
export const Post = (props: PostType) => {
|
||||
const date = new Date(props.date);
|
||||
@@ -97,7 +97,7 @@ export const Post = (props: PostType) => {
|
||||
data-tina-field={ tinaField(props, "_body") }
|
||||
className="prose dark:prose-dark w-full max-w-none"
|
||||
>
|
||||
<TinaMarkdown components={ inlineComponents } content={ props._body } />
|
||||
<TinaMarkdown components={ richTextComponents } content={ props._body } />
|
||||
</div>
|
||||
</Container>
|
||||
</Section>
|
||||
|
||||
Reference in New Issue
Block a user