Skip to content

Commit

Permalink
Down the levels of index
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsk committed Oct 22, 2018
1 parent 6467c81 commit 356485b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fm.body // Markdown source => "# Title\n\nmessage\n"
fm.html // Compiled markdown as HTML => "<h1>Title</h1>\n<p>message</p>\n"
```

# Instllation
## Instllation

```
$ npm i -D frontmatter-markdown-loader
Expand All @@ -42,7 +42,7 @@ Or
$ yarn add -D frontmatter-markdown-loader
```

# Setup
## Setup

Configure the loader for Markdown files like:

Expand All @@ -59,9 +59,9 @@ Then you can get frontmatter attributes and compiled markdown 🎉
import fm from "something.md"
```

# Options
## Options

## Use your own markdown compiler
### Use your own markdown compiler

```js
{
Expand Down Expand Up @@ -93,7 +93,7 @@ const md = require('markdown-it')
}
```

## Vue template
### Vue template

The loader could compile HTML section of files as Vue template. (Excepting code snipets as Markdown which will be compiled to `<code>`)

Expand Down Expand Up @@ -164,7 +164,7 @@ export default {
```
</details>

### Component's root element
#### Component's root element

Also you can give the class name of body html with `options.vue.root`.

Expand All @@ -180,15 +180,15 @@ Also you can give the class name of body html with `options.vue.root`.
}
```

# Inspired/Referred
## Inspired/Referred

- [egoist/vmark: Convert markdown to Vue component.](https://github.com/egoist/vmark)
- [webpack-contrib/json-loader: json loader module for webpack](https://github.com/webpack-contrib/json-loader)

# Contributor
## Contributor

- [Daniel Roe / @danielroe](https://github.com/danielroe)

# License
## License

- [MIT](LICENSE) Copyright Kengo Hamasaki

0 comments on commit 356485b

Please sign in to comment.