wikiparser-node 1.21.3 → 1.22.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/README.md +6 -0
- package/bundle/bundle-es8.min.js +24 -24
- package/bundle/bundle-lsp.min.js +26 -26
- package/bundle/bundle.min.js +24 -24
- package/config/default.json +17 -11
- package/config/enwiki.json +1 -1
- package/config/jawiki.json +1 -1
- package/config/minimum.json +3 -3
- package/config/moegirl.json +154 -15
- package/config/zhwiki.json +1 -1
- package/dist/addon/token.js +3 -0
- package/dist/base.d.mts +10 -8
- package/dist/base.d.ts +10 -8
- package/dist/bin/config.js +23 -11
- package/dist/index.d.ts +31 -2
- package/dist/index.js +27 -1
- package/dist/lib/document.js +1 -1
- package/dist/lib/element.d.ts +4 -4
- package/dist/lib/element.js +7 -7
- package/dist/lib/lintConfig.js +123 -6
- package/dist/lib/lsp.d.ts +7 -7
- package/dist/lib/lsp.js +36 -23
- package/dist/lib/node.d.ts +1 -1
- package/dist/lib/node.js +1 -1
- package/dist/lib/range.d.ts +2 -2
- package/dist/lib/range.js +10 -4
- package/dist/lib/text.js +72 -62
- package/dist/lib/title.d.ts +11 -4
- package/dist/lib/title.js +16 -6
- package/dist/mixin/readOnly.js +3 -1
- package/dist/parser/commentAndExt.js +6 -4
- package/dist/parser/converter.js +1 -1
- package/dist/parser/selector.js +11 -9
- package/dist/src/arg.js +11 -10
- package/dist/src/attribute.js +31 -19
- package/dist/src/attributes.js +10 -8
- package/dist/src/commented.js +1 -1
- package/dist/src/converterRule.js +2 -2
- package/dist/src/gallery.js +26 -19
- package/dist/src/heading.js +32 -36
- package/dist/src/html.js +64 -51
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +10 -8
- package/dist/src/link/base.d.ts +1 -1
- package/dist/src/link/base.js +22 -15
- package/dist/src/link/file.js +22 -14
- package/dist/src/link/index.d.ts +1 -1
- package/dist/src/link/index.js +1 -1
- package/dist/src/magicLink.js +16 -12
- package/dist/src/nowiki/index.js +1 -1
- package/dist/src/nowiki/quote.js +19 -38
- package/dist/src/table/index.js +33 -27
- package/dist/src/table/td.d.ts +1 -1
- package/dist/src/table/td.js +27 -25
- package/dist/src/table/trBase.js +13 -10
- package/dist/src/tagPair/ext.js +6 -3
- package/dist/src/tagPair/index.js +2 -3
- package/dist/src/transclude.d.ts +15 -1
- package/dist/src/transclude.js +43 -13
- package/dist/util/lint.js +3 -5
- package/dist/util/sharable.js +1 -1
- package/dist/util/sharable.mjs +2 -2
- package/extensions/dist/base.js +8 -1
- package/extensions/typings.d.ts +2 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
89
89
|
1. Memory leaks may occur in rare cases.
|
|
90
90
|
1. Invalid page names with unicode characters are treated like valid ones ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Render%20invalid%20page%20names%20as%20plain%20text%20(T53090))).
|
|
91
91
|
1. Preformatted text with a leading space is only processed by [`Token.prototype.toHtml`](https://github.com/bhsd-harry/wikiparser-node/wiki/Token-%28EN%29#tohtml).
|
|
92
|
+
1. BCP 47 language codes are not supported in language conversion ([Example](https://bhsd-harry.github.io/wikiparser-node/tests.html#Explicit%20definition%20of%20language%20variant%20alternatives%20(BCP%2047%20codes))).
|
|
92
93
|
|
|
93
94
|
## HTML conversion
|
|
94
95
|
|
|
@@ -131,6 +132,11 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
|
|
|
131
132
|
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))).
|
|
132
133
|
1. Mixed lists ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Mixed%20Lists%3A%20Test%204)).
|
|
133
134
|
|
|
135
|
+
### Language conversion
|
|
136
|
+
|
|
137
|
+
1. Automatic language conversion is not supported.
|
|
138
|
+
1. Support for manual language conversion is minimal ([Example](https://bhsd-harry.github.io/wikiparser-node/tests.html#Explicit%20session-wise%20one-way%20language%20variant%20mapping%20(A%20flag%20and%20-%20flag))).
|
|
139
|
+
|
|
134
140
|
### Miscellaneous
|
|
135
141
|
|
|
136
142
|
1. Illegal HTML entities ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Illegal%20character%20references%20(T106578%2C%20T113194))).
|