wikiparser-node 1.21.2 → 1.21.3
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/README.md +3 -5
- package/bundle/bundle-es8.min.js +25 -25
- package/bundle/bundle-lsp.min.js +26 -26
- package/bundle/bundle.min.js +25 -25
- package/dist/base.d.mts +6 -1
- package/dist/base.d.ts +6 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -1
- package/dist/lib/element.js +2 -1
- package/dist/lib/lintConfig.d.ts +13 -0
- package/dist/lib/lintConfig.js +161 -0
- package/dist/lib/lsp.js +6 -4
- package/dist/lib/node.js +646 -606
- package/dist/lib/text.js +4 -0
- package/dist/mixin/attributesParent.d.ts +6 -6
- package/dist/mixin/attributesParent.js +4 -4
- package/dist/mixin/cached.d.ts +5 -0
- package/dist/mixin/cached.js +22 -0
- package/dist/mixin/clone.d.ts +5 -0
- package/dist/mixin/clone.js +23 -0
- package/dist/mixin/hidden.js +68 -18
- package/dist/mixin/sol.js +1 -1
- package/dist/parser/commentAndExt.js +1 -1
- package/dist/parser/html.js +3 -3
- package/dist/parser/table.js +2 -2
- package/dist/src/arg.js +13 -7
- package/dist/src/atom.js +76 -31
- package/dist/src/attribute.js +49 -21
- package/dist/src/attributes.d.ts +7 -7
- package/dist/src/attributes.js +415 -366
- package/dist/src/commented.js +81 -35
- package/dist/src/converter.js +13 -7
- package/dist/src/converterFlags.js +33 -22
- package/dist/src/converterRule.js +263 -216
- package/dist/src/extLink.js +21 -16
- package/dist/src/gallery.js +18 -8
- package/dist/src/heading.js +66 -57
- package/dist/src/hidden.js +14 -9
- package/dist/src/html.js +28 -9
- package/dist/src/imageParameter.js +13 -6
- package/dist/src/imagemap.js +32 -25
- package/dist/src/index.js +53 -44
- package/dist/src/link/base.js +13 -8
- package/dist/src/link/file.js +401 -354
- package/dist/src/link/galleryImage.js +9 -5
- package/dist/src/link/index.js +7 -3
- package/dist/src/link/redirectTarget.js +7 -3
- package/dist/src/magicLink.js +23 -14
- package/dist/src/nested.js +122 -74
- package/dist/src/nowiki/base.js +5 -2
- package/dist/src/nowiki/comment.js +5 -1
- package/dist/src/nowiki/index.js +3 -3
- package/dist/src/nowiki/quote.js +13 -8
- package/dist/src/onlyinclude.js +17 -9
- package/dist/src/paramTag/index.js +21 -14
- package/dist/src/parameter.js +26 -20
- package/dist/src/pre.js +91 -45
- package/dist/src/syntax.js +14 -10
- package/dist/src/table/index.js +550 -503
- package/dist/src/table/td.js +65 -58
- package/dist/src/table/trBase.js +179 -129
- package/dist/src/tagPair/ext.js +32 -20
- package/dist/src/tagPair/include.js +5 -5
- package/dist/src/tagPair/translate.js +150 -103
- package/dist/src/transclude.js +13 -8
- package/dist/util/html.js +46 -41
- package/dist/util/lint.js +4 -4
- package/dist/util/string.js +13 -7
- package/extensions/dist/base.js +2 -2
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -44,13 +44,13 @@ npm i wikilint
|
|
|
44
44
|
You can download the code via CDN, for example:
|
|
45
45
|
|
|
46
46
|
```html
|
|
47
|
-
<script src="//cdn.jsdelivr.net/npm/wikiparser-node
|
|
47
|
+
<script src="//cdn.jsdelivr.net/npm/wikiparser-node"></script>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
or
|
|
51
51
|
|
|
52
52
|
```html
|
|
53
|
-
<script src="//unpkg.com/wikiparser-node
|
|
53
|
+
<script src="//unpkg.com/wikiparser-node/bundle/bundle.min.js"></script>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
For more browser extensions, please refer to the corresponding [documentation](https://github.com/bhsd-harry/wikiparser-node/wiki/Browser-%28EN%29).
|
|
@@ -103,7 +103,6 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
103
103
|
|
|
104
104
|
### Heading
|
|
105
105
|
|
|
106
|
-
1. HTML section heading elements are not automatically given an `id` attribute ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Do%20not%20trim%20whitespace%20in%20HTML%20headings%2C%20list%20items%2C%20table%20captions%2C%20headings%2C%20and%20cells)).
|
|
107
106
|
1. The table of contents (TOC) is not supported.
|
|
108
107
|
|
|
109
108
|
### HTML tag
|
|
@@ -113,7 +112,6 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
113
112
|
### Table
|
|
114
113
|
|
|
115
114
|
1. `<caption>` elements are wrapped in `<tbody>` elements ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Trim%20whitespace%20in%20wikitext%20headings%2C%20list%20items%2C%20table%20captions%2C%20headings%2C%20and%20cells)).
|
|
116
|
-
1. Missing newline between the fostered content and the table ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Templates%3A%20Wiki%20Tables%3A%201a.%20Fostering%20of%20entire%20template%20content)).
|
|
117
115
|
1. Unclosed HTML tags in the table fostered content ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Fuzz%20testing%3A%20Parser24)).
|
|
118
116
|
1. `<tr>` elements should not be fostered ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Empty%20TR%20followed%20by%20a%20template-generated%20TR)).
|
|
119
117
|
|
|
@@ -125,7 +123,7 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
125
123
|
|
|
126
124
|
### External link
|
|
127
125
|
|
|
128
|
-
1. External images are not supported ([
|
|
126
|
+
1. External images are not supported (Examples [1](http://bhsd-harry.github.io/wikiparser-node/tests.html#External%20image), [2](http://bhsd-harry.github.io/wikiparser-node/tests.html#External%20links%3A%20Clickable%20images)).
|
|
129
127
|
1. No percent-encoding in displayed free external links ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Parsoid%3A%20pipe%20in%20transclusion%20parameter)).
|
|
130
128
|
|
|
131
129
|
### Block element
|