mirror of
https://github.com/primer/css.git
synced 2024-11-27 17:52:45 +03:00
lint
This commit is contained in:
parent
552873dda1
commit
84e083cbea
@ -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}') {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user