Skip to content

Commit

Permalink
Fix indentations in code examples for real
Browse files Browse the repository at this point in the history
There appears to be a bug in Prettier with formatting MDX. It doesn’t always format quite correctly.
  • Loading branch information
brandonweiss committed Apr 1, 2019
1 parent c2e6356 commit ddc29e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .prettierignore
@@ -1 +1,2 @@
README.md
docs/**/*.mdx
10 changes: 5 additions & 5 deletions docs/pages.html.mdx
Expand Up @@ -88,9 +88,9 @@ A named `layout` export can be used to provide a layout component that will wrap
import Layout from "./layout.html.jsx"

export const layout = (props) => (
<Layout title="Title">
{props.children}
</Layout>
<Layout title="Title">
{props.children}
</Layout>
)

# Heading
Expand Down Expand Up @@ -191,8 +191,8 @@ The `meta` property is populated by exporting a named export from the page with
```markdown
// first-post.html.mdx
export const meta = {
date: "2019/01/28",
title: "First post!"
date: "2019/01/28",
title: "First post!"
}

My first post.
Expand Down

0 comments on commit ddc29e1

Please sign in to comment.