wikiparser-node 1.41.0 → 1.42.0
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 +5 -3
- package/bundle/bundle-es8.min.js +27 -27
- package/bundle/bundle-lsp.min.js +28 -28
- package/bundle/bundle.min.js +19 -19
- package/dist/addon/attribute.js +1 -1
- package/dist/addon/transclude.js +1 -3
- package/dist/bin/config.js +1 -1
- package/dist/index.js +1 -2
- package/dist/lib/element.d.ts +3 -8
- package/dist/lib/element.js +2 -26
- package/dist/lib/lsp.d.ts +2 -0
- package/dist/lib/lsp.js +8 -20
- package/dist/lib/node.d.ts +2 -0
- package/dist/lib/node.js +0 -7
- package/dist/lib/range.d.ts +0 -7
- package/dist/lib/range.js +5 -14
- package/dist/lib/text.js +3 -5
- package/dist/map.d.ts +66 -0
- package/dist/map.js +2 -0
- package/dist/mixin/attributesParent.d.ts +4 -3
- package/dist/mixin/elementLike.d.ts +13 -0
- package/dist/mixin/elementLike.js +66 -53
- package/dist/parser/selector.js +3 -3
- package/dist/render/extension.js +139 -8
- package/dist/render/html.js +72 -3
- package/dist/src/attribute.d.ts +2 -2
- package/dist/src/attribute.js +17 -13
- package/dist/src/attributes.d.ts +3 -3
- package/dist/src/attributes.js +30 -14
- package/dist/src/extLink.js +5 -4
- package/dist/src/heading.js +11 -3
- package/dist/src/index.js +3 -4
- package/dist/src/link/base.js +2 -4
- package/dist/src/link/file.js +5 -5
- package/dist/src/link/galleryImage.js +1 -3
- package/dist/src/magicLink.js +6 -5
- package/dist/src/multiLine/gallery.js +2 -3
- package/dist/src/nowiki/doubleUnderscore.d.ts +1 -0
- package/dist/src/nowiki/doubleUnderscore.js +4 -1
- package/dist/src/nowiki/quote.js +1 -3
- package/dist/src/parameter.js +5 -2
- package/dist/src/table/td.d.ts +2 -2
- package/dist/src/table/td.js +1 -1
- package/dist/src/tag/html.js +29 -12
- package/dist/src/tagPair/ext.js +4 -1
- package/dist/src/tagPair/translate.d.ts +1 -1
- package/dist/src/tagPair/translate.js +1 -1
- package/dist/util/debug.js +5 -7
- package/dist/util/html.js +3 -11
- package/extensions/dist/base.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ Please refer to the [Wiki](https://github.com/bhsd-harry/wikiparser-node/wiki/Ho
|
|
|
115
115
|
```ts
|
|
116
116
|
import Parser from "wikiparser-node";
|
|
117
117
|
import type {TranscludeToken} from "wikiparser-node";
|
|
118
|
+
|
|
118
119
|
Parser.config = "enwiki";
|
|
119
120
|
const root = Parser.parse("{{Infobox|name=Old}}\nText"),
|
|
120
121
|
template = root.querySelector<TranscludeToken>("template#Template:Infobox");
|
|
@@ -152,8 +153,8 @@ The following limitations are documented for transparency.
|
|
|
152
153
|
|
|
153
154
|
#### Extension
|
|
154
155
|
|
|
155
|
-
1. Many extensions are not supported
|
|
156
|
-
1.
|
|
156
|
+
1. Many extensions are not supported.
|
|
157
|
+
1. [Sub-referencing](https://meta.wikimedia.org/wiki/WMDE_Technical_Wishes/Sub-referencing) is not supported.
|
|
157
158
|
|
|
158
159
|
#### Transclusion
|
|
159
160
|
|
|
@@ -162,7 +163,7 @@ The following limitations are documented for transparency.
|
|
|
162
163
|
|
|
163
164
|
#### Heading
|
|
164
165
|
|
|
165
|
-
1.
|
|
166
|
+
1. RTL support in the table of contents (TOC) ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#span%20tags%20with%20directionality%20in%20TOC)).
|
|
166
167
|
|
|
167
168
|
#### HTML tag
|
|
168
169
|
|
|
@@ -196,6 +197,7 @@ The following limitations are documented for transparency.
|
|
|
196
197
|
|
|
197
198
|
1. Automatic language conversion is not supported.
|
|
198
199
|
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))).
|
|
200
|
+
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))).
|
|
199
201
|
|
|
200
202
|
#### Miscellaneous
|
|
201
203
|
|