wikiparser-node 1.21.1 → 1.21.2
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 +11 -3
- package/bundle/bundle-es8.min.js +23 -23
- package/bundle/bundle-lsp.min.js +24 -24
- package/bundle/bundle.min.js +23 -23
- package/coverage/badge.svg +1 -1
- package/dist/addon/table.js +5 -5
- package/dist/addon/token.js +116 -7
- package/dist/bin/config.js +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/lib/element.d.ts +1 -0
- package/dist/lib/element.js +1 -0
- package/dist/lib/lsp.d.ts +2 -0
- package/dist/lib/lsp.js +5 -4
- package/dist/lib/node.d.ts +20 -3
- package/dist/lib/node.js +39 -17
- package/dist/lib/text.d.ts +2 -0
- package/dist/lib/text.js +17 -12
- package/dist/lib/title.d.ts +3 -1
- package/dist/lib/title.js +3 -1
- package/dist/mixin/sol.js +1 -1
- package/dist/parser/list.js +6 -3
- package/dist/parser/table.js +2 -2
- package/dist/src/arg.js +1 -1
- package/dist/src/attribute.d.ts +1 -0
- package/dist/src/attribute.js +6 -3
- package/dist/src/attributes.js +1 -1
- package/dist/src/converter.js +1 -1
- package/dist/src/converterFlags.js +1 -1
- package/dist/src/extLink.js +2 -2
- package/dist/src/gallery.d.ts +12 -2
- package/dist/src/gallery.js +12 -2
- package/dist/src/heading.d.ts +6 -1
- package/dist/src/heading.js +7 -2
- package/dist/src/hidden.js +1 -1
- package/dist/src/html.js +1 -1
- package/dist/src/imageParameter.d.ts +1 -0
- package/dist/src/imageParameter.js +3 -2
- package/dist/src/imagemap.js +4 -4
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +14 -6
- package/dist/src/link/base.js +4 -4
- package/dist/src/link/file.d.ts +9 -1
- package/dist/src/link/file.js +13 -5
- package/dist/src/link/galleryImage.js +3 -1
- package/dist/src/link/redirectTarget.d.ts +6 -1
- package/dist/src/link/redirectTarget.js +7 -2
- package/dist/src/magicLink.d.ts +6 -1
- package/dist/src/magicLink.js +7 -2
- package/dist/src/nested.js +1 -1
- package/dist/src/nowiki/comment.js +1 -1
- package/dist/src/nowiki/index.js +1 -1
- package/dist/src/nowiki/listBase.d.ts +6 -1
- package/dist/src/nowiki/listBase.js +7 -2
- package/dist/src/nowiki/quote.d.ts +6 -1
- package/dist/src/nowiki/quote.js +9 -2
- package/dist/src/parameter.js +1 -1
- package/dist/src/redirect.js +1 -1
- package/dist/src/table/index.js +8 -7
- package/dist/src/table/td.js +1 -1
- package/dist/src/table/trBase.js +2 -2
- package/dist/src/transclude.d.ts +21 -8
- package/dist/src/transclude.js +43 -26
- package/dist/util/html.js +3 -6
- package/dist/util/lint.js +6 -3
- package/extensions/dist/base.js +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -103,17 +103,19 @@ 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)).
|
|
106
107
|
1. The table of contents (TOC) is not supported.
|
|
107
108
|
|
|
108
109
|
### HTML tag
|
|
109
110
|
|
|
110
111
|
1. Style sanitization is sometimes different ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#CSS%20safety%20test%20(all%20browsers)%3A%20vertical%20tab%20(T57332%20%2F%20CVE-2013-4567))).
|
|
111
|
-
1. Empty `id` attributes are not removed ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Sanitizer%3A%20Validating%20the%20contents%20of%20the%20id%20attribute%2C%20empty%20attribute%20syntax%20(T6515))).
|
|
112
112
|
|
|
113
113
|
### Table
|
|
114
114
|
|
|
115
|
-
1.
|
|
115
|
+
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
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
|
+
1. Unclosed HTML tags in the table fostered content ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Fuzz%20testing%3A%20Parser24)).
|
|
118
|
+
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)).
|
|
117
119
|
|
|
118
120
|
### Link
|
|
119
121
|
|
|
@@ -123,8 +125,14 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
123
125
|
|
|
124
126
|
### External link
|
|
125
127
|
|
|
128
|
+
1. External images are not supported ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#T21052%20U%2B3000%20IDEOGRAPHIC%20SPACE%20should%20terminate%20external%20images%20links)).
|
|
126
129
|
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)).
|
|
127
130
|
|
|
128
131
|
### Block element
|
|
129
132
|
|
|
130
|
-
1. Incomplete `<p>` wrapping when there are block elements (e.g., [`<pre>`](http://bhsd-harry.github.io/wikiparser-node/tests.html#%3Cpre%3E%20inside%20a%20link), [`<div>`](http://bhsd-harry.github.io/wikiparser-node/tests.html#Templates%3A%20Scopes%20should%20not%20be%20expanded%20unnecessarily) or even [closing tags](http://bhsd-harry.github.io/wikiparser-node/tests.html#Non-word%20characters%20don't%20terminate%20tag%20names%20(T19663%2C%20T42670%2C%20T54022))).
|
|
133
|
+
1. Incomplete `<p>` wrapping when there are block elements (e.g., [`<pre>`](http://bhsd-harry.github.io/wikiparser-node/tests.html#%3Cpre%3E%20inside%20a%20link), [`<div>`](http://bhsd-harry.github.io/wikiparser-node/tests.html#Templates%3A%20Scopes%20should%20not%20be%20expanded%20unnecessarily) or even [closing tags](http://bhsd-harry.github.io/wikiparser-node/tests.html#Non-word%20characters%20don't%20terminate%20tag%20names%20(T19663%2C%20T42670%2C%20T54022))).
|
|
134
|
+
1. Mixed lists ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Mixed%20Lists%3A%20Test%204)).
|
|
135
|
+
|
|
136
|
+
### Miscellaneous
|
|
137
|
+
|
|
138
|
+
1. Illegal HTML entities ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Illegal%20character%20references%20(T106578%2C%20T113194))).
|