1
1
mirror of https://github.com/primer/css.git synced 2024-11-27 17:52:45 +03:00
This commit is contained in:
Emily Plummer 2019-04-25 11:23:24 -07:00
parent 552873dda1
commit 84e083cbea
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import Outline from './Outline'
export const H1 = props => <Heading fontSize={6} fontWeight="light" {...props} />
export default function getComponents(page = {}) {
const {outline: getOutline = () => []} = page
@ -14,7 +13,7 @@ export default function getComponents(page = {}) {
// render links with our component
a: Link,
// render code blocks with our wrapper around react-live
code: (props) => <CodeExample {...props}/>,
code: CodeExample,
// render the outline for <p> tags with exactly the text "{:toc}"
p: ({children, ...rest}) => {
if (children === '{:toc}') {

View File

@ -82,7 +82,6 @@
"klaw": "3.0.0",
"loader-utils": "^1.1.0",
"mdx-constant": "^0.1.0",
"mdx-live": "2.0.0-alpha.2",
"metalsmith": "^2.3.0",
"metalsmith-filter": "^1.0.2",
"metalsmith-matters": "^1.2.0",