@markuplint/vue-parser 4.0.0-rc.0 → 4.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/parser.js +8 -0
  2. package/package.json +5 -5
package/lib/parser.js CHANGED
@@ -123,6 +123,14 @@ class VueParser extends Parser {
123
123
  if (closeTemplateTag && node.type === 'text') {
124
124
  continue;
125
125
  }
126
+ // ignore script and style
127
+ if (node.nodeName === 'script' || node.nodeName === 'style') {
128
+ continue;
129
+ }
130
+ // and ignore endtag of script and style
131
+ if (node.raw === '</script>' || node.nodeName === '</style>') {
132
+ continue;
133
+ }
126
134
  newNodeList.push(node);
127
135
  }
128
136
  return newNodeList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/vue-parser",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0-rc.1",
4
4
  "description": "Vue parser for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -21,10 +21,10 @@
21
21
  "clean": "tsc --build --clean"
22
22
  },
23
23
  "dependencies": {
24
- "@markuplint/html-parser": "4.0.0-rc.0",
25
- "@markuplint/ml-ast": "4.0.0-rc.0",
26
- "@markuplint/parser-utils": "4.0.0-rc.0",
24
+ "@markuplint/html-parser": "4.0.0-rc.1",
25
+ "@markuplint/ml-ast": "4.0.0-rc.1",
26
+ "@markuplint/parser-utils": "4.0.0-rc.1",
27
27
  "vue-eslint-parser": "^9.4.2"
28
28
  },
29
- "gitHead": "3fdeb45cb69ed52b3a215a7520cea1181601443f"
29
+ "gitHead": "3a9dbbf4c3c05de66d402802919ee94a46a5eb67"
30
30
  }