You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
[简体中文](./README-CN.md)
4
4
5
-
This is a webpack laoder that can load markdown file. With proper configuration, the loader can convert markdown file content into `vue sfc` component object or into html string, so it can be chained with vue-loader or html-loader.
5
+
This is a webpack loader that can load markdown files. With proper configuration, the loader can convert markdown file content into `vue sfc` component object or into html string, so it can be chained with vue-loader or html-loader.
6
6
7
7
The project is inspired by [vuepress](https://github.com/vuejs/vuepress), we reused most of its source code and made some improvements to allow it being used in non-vuepress project.
8
8
@@ -16,9 +16,9 @@ If you are interested in Vuepress, please visit [vuepress](https://github.com/vu
16
16
npm i @tianyong90/vue-markdown-loader -S
17
17
```
18
18
19
-
## Useage
19
+
## Usage
20
20
21
-
### sue along with vue-loader
21
+
### Use along with vue-loader
22
22
23
23
Generally, it is recommended to be used with `vue-loader`
24
24
@@ -80,7 +80,7 @@ export default {
80
80
</style>
81
81
```
82
82
83
-
### along with html-loader
83
+
### Usealong with html-loader
84
84
85
85
`vue-markdown-loader` can parse markdown and return html string which can be loaded by `html-loader`
86
86
@@ -126,13 +126,13 @@ Hello:
126
126
127
127

128
128
129
-
### use it alone
129
+
### Use it alone
130
130
131
-
`vue-markdown-loader` can parse markdown file and return an objectwhick contains hteml and frontmattter data of the file.
131
+
`vue-markdown-loader` can parse markdown file and return an objectwhich contains html and frontmattter data of the file.
132
132
133
133
1. configuration
134
134
135
-
add rule for .md file in webpack.config.js
135
+
add rule for `.md` file in webpack.config.js
136
136
137
137
```js
138
138
module: {
@@ -166,7 +166,7 @@ import Hello from 'hello.md'
166
166
console.log(Hello)
167
167
```
168
168
169
-
the variable `Html` contains 2 property, `attributes`(frontmatter data) and `html`(htmlcontent), looks lick below:
169
+
the variable `Html` contains 2 property, `attributes`(frontmatter data) and `html`(htmlcontent), looks like below:
0 commit comments