@markuplint/svelte-parser 5.5.0 → 5.6.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.
- package/lib/parser.js +4 -0
- package/package.json +6 -6
package/lib/parser.js
CHANGED
|
@@ -32,6 +32,10 @@ export class SvelteParser extends Parser {
|
|
|
32
32
|
// A static attribute is in the HTML string that the compiler hands to the browser's parser,
|
|
33
33
|
// and a dynamic one is set by `set_attribute` under the name as written.
|
|
34
34
|
attrNameRoute: 'dom-api-when-dynamic',
|
|
35
|
+
// `<slot>` is replaced with what the parent component passes to it, not the HTML `slot` element
|
|
36
|
+
// of a shadow tree
|
|
37
|
+
// @see https://svelte.dev/docs/svelte/legacy-slots
|
|
38
|
+
slotElement: 'framework',
|
|
35
39
|
// No `ignoreTags`:
|
|
36
40
|
// - The script tag needs to be passed with the lang attribute to the parser, so instead of
|
|
37
41
|
// masking it, it is converted to PSBlock in visitText.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/svelte-parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"description": "Svelte parser for markuplint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@markuplint/html-parser": "5.
|
|
44
|
-
"@markuplint/ml-ast": "5.
|
|
45
|
-
"@markuplint/parser-utils": "5.
|
|
46
|
-
"@markuplint/shared": "5.
|
|
43
|
+
"@markuplint/html-parser": "5.6.1",
|
|
44
|
+
"@markuplint/ml-ast": "5.6.0",
|
|
45
|
+
"@markuplint/parser-utils": "5.6.1",
|
|
46
|
+
"@markuplint/shared": "5.6.0",
|
|
47
47
|
"svelte": "^5.57.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a9245162df3699c4880469f493aaaf6103343d83"
|
|
50
50
|
}
|