File tree 3 files changed +1
-27
lines changed
3 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,6 @@ will generate (`example.vue`):
127
127
</script >
128
128
```
129
129
130
- ### escapeApostrophes
131
-
132
- - Type: ` Boolean `
133
- - Default: ` false `
134
-
135
- Indicate if escape all apostrophes in html (` ' ` => ` ' ` ) or not.
136
-
137
130
### exportSource
138
131
139
132
- Type: ` Boolean `
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const path = require('path');
8
8
const defaultOptions = {
9
9
componentNamespace : 'component' ,
10
10
componentWrapper : '' ,
11
- escapeApostrophes : false ,
12
11
exportSource : false ,
13
12
languages : [ 'vue' , 'html' ] ,
14
13
markdownItOptions : { } ,
@@ -29,7 +28,6 @@ const defaultCheerioLoadOptions = {
29
28
} ;
30
29
31
30
// RegExps
32
- const REGEXP_APOSTROPHES = / & a p o s ; / g;
33
31
const REGEXP_COMMENT_OPTIONS = / ^ ( n o - ) ? v u e - c o m p o n e n t $ / ;
34
32
const REGEXP_HYPHENS_END = / - * $ / ;
35
33
const REGEXP_HYPHENS_START = / ^ - * / ;
@@ -260,11 +258,5 @@ export default function markdownToVueLoader(source, map) {
260
258
</script>` ) ;
261
259
}
262
260
263
- let output = $html ( 'body' ) . html ( ) ;
264
-
265
- if ( ! options . escapeApostrophes ) {
266
- output = output . replace ( REGEXP_APOSTROPHES , '\'' ) ;
267
- }
268
-
269
- this . callback ( null , output , map ) ;
261
+ this . callback ( null , $html ( 'body' ) . html ( ) , map ) ;
270
262
}
Original file line number Diff line number Diff line change @@ -208,17 +208,6 @@ describe('markdown-to-vue-loader', () => {
208
208
} ) ;
209
209
} ) ;
210
210
211
- it ( 'escapeApostrophes' , ( done ) => {
212
- bundle ( {
213
- entry : './test/fixtures/vue.md' ,
214
- } , ( content ) => {
215
- expect ( content ) . to . contain ( ''' ) ;
216
- done ( ) ;
217
- } , {
218
- escapeApostrophes : true ,
219
- } ) ;
220
- } ) ;
221
-
222
211
it ( 'exportSource' , ( done ) => {
223
212
bundle ( {
224
213
entry : './test/fixtures/vue.md' ,
You can’t perform that action at this time.
0 commit comments