Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/four-bulldogs-hope.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Renders docs.json markdown content
5 changes: 3 additions & 2 deletions docs/src/props-table.js
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
import React from 'react'
import {Box, Link, Label} from '@primer/react'
import Table from '@primer/gatsby-theme-doctocat/src/components/table'
import InlineCode from '@primer/gatsby-theme-doctocat/src/components/inline-code'
import Table from '@primer/gatsby-theme-doctocat/src/components/table'
import ReactMarkdown from 'react-markdown'

function PropsTable({children}) {
return (
Expand DownExpand Up@@ -67,7 +68,7 @@ function Row({name, type, defaultValue, description, required, deprecated}) {
{defaultValue}
</Box>
<Box as="td" verticalAlign="top">
{description}
<ReactMarkdown components={{a: Link, code: InlineCode}}>{description}</ReactMarkdown>
</Box>
</tr>
)
Expand Down
Loading