Skip to content

Commit 1eeb161

Browse files
committed
build: release 2.0.0-alpha
1 parent 1da8640 commit 1eeb161

9 files changed

+1673
-2442
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 2.0.0-alpha (Feb 12, 2019)
4+
5+
- add 2 new options: `cheerioLoadOptions` and `configureMarkdownIt`.
6+
- Support root `<style>` elements.
7+
- Set the `decodeEntities` option of `cheerio.load()` from `true` to `false`.
8+
- Drop the `escapeApostrophes` option.
9+
310
## 1.0.1 (Dec 10, 2018)
411

512
- Add missing dependencies and upgrade some dependencies.

README.md

+36-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,38 @@ module: {
4747

4848
## Options
4949

50+
### cheerioLoadOptions
51+
52+
- Type: `Object`
53+
- Default:
54+
55+
```js
56+
{
57+
decodeEntities: false,
58+
lowerCaseAttributeNames: false,
59+
lowerCaseTags: false,
60+
}
61+
```
62+
63+
The options for the `load` method of the [**cheerio**](https://github.com/cheeriojs/cheerio).
64+
65+
### configureMarkdownIt
66+
67+
- Type: `Function`
68+
- Default: `null`
69+
- Example:
70+
71+
```js
72+
{
73+
configureMarkdownIt(md) {
74+
md.set(...)
75+
.use(...);
76+
}
77+
}
78+
```
79+
80+
Checkout the documentation of [MarkdownIt](https://markdown-it.github.io/markdown-it/) for more information.
81+
5082
### componentNamespace
5183

5284
- Type: `String`
@@ -195,14 +227,17 @@ will generate (`example.vue`):
195227
196228
- Type: `Object`
197229
- Default:
230+
198231
```js
199232
{
200233
html: true,
201234
linkify: true,
202235
typographer: true,
203236
}
204237
```
238+
205239
- Example:
240+
206241
```js
207242
{
208243
typographer: false,
@@ -212,7 +247,7 @@ will generate (`example.vue`):
212247
}
213248
```
214249
215-
The options for built-in markdown parser [**markdown-it**](https://github.com/markdown-it/markdown-it).
250+
The options for the built-in markdown parser [**markdown-it**](https://github.com/markdown-it/markdown-it).
216251
217252
### preClass
218253

dist/markdown-to-vue-loader.esm.js

-210
This file was deleted.

0 commit comments

Comments
 (0)