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.
Files changed (51) hide show
  1. package/README.md +5 -3
  2. package/bundle/bundle-es8.min.js +27 -27
  3. package/bundle/bundle-lsp.min.js +28 -28
  4. package/bundle/bundle.min.js +19 -19
  5. package/dist/addon/attribute.js +1 -1
  6. package/dist/addon/transclude.js +1 -3
  7. package/dist/bin/config.js +1 -1
  8. package/dist/index.js +1 -2
  9. package/dist/lib/element.d.ts +3 -8
  10. package/dist/lib/element.js +2 -26
  11. package/dist/lib/lsp.d.ts +2 -0
  12. package/dist/lib/lsp.js +8 -20
  13. package/dist/lib/node.d.ts +2 -0
  14. package/dist/lib/node.js +0 -7
  15. package/dist/lib/range.d.ts +0 -7
  16. package/dist/lib/range.js +5 -14
  17. package/dist/lib/text.js +3 -5
  18. package/dist/map.d.ts +66 -0
  19. package/dist/map.js +2 -0
  20. package/dist/mixin/attributesParent.d.ts +4 -3
  21. package/dist/mixin/elementLike.d.ts +13 -0
  22. package/dist/mixin/elementLike.js +66 -53
  23. package/dist/parser/selector.js +3 -3
  24. package/dist/render/extension.js +139 -8
  25. package/dist/render/html.js +72 -3
  26. package/dist/src/attribute.d.ts +2 -2
  27. package/dist/src/attribute.js +17 -13
  28. package/dist/src/attributes.d.ts +3 -3
  29. package/dist/src/attributes.js +30 -14
  30. package/dist/src/extLink.js +5 -4
  31. package/dist/src/heading.js +11 -3
  32. package/dist/src/index.js +3 -4
  33. package/dist/src/link/base.js +2 -4
  34. package/dist/src/link/file.js +5 -5
  35. package/dist/src/link/galleryImage.js +1 -3
  36. package/dist/src/magicLink.js +6 -5
  37. package/dist/src/multiLine/gallery.js +2 -3
  38. package/dist/src/nowiki/doubleUnderscore.d.ts +1 -0
  39. package/dist/src/nowiki/doubleUnderscore.js +4 -1
  40. package/dist/src/nowiki/quote.js +1 -3
  41. package/dist/src/parameter.js +5 -2
  42. package/dist/src/table/td.d.ts +2 -2
  43. package/dist/src/table/td.js +1 -1
  44. package/dist/src/tag/html.js +29 -12
  45. package/dist/src/tagPair/ext.js +4 -1
  46. package/dist/src/tagPair/translate.d.ts +1 -1
  47. package/dist/src/tagPair/translate.js +1 -1
  48. package/dist/util/debug.js +5 -7
  49. package/dist/util/html.js +3 -11
  50. package/extensions/dist/base.js +1 -1
  51. 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, such as `<indicator>` and `<ref>`.
156
- 1. `&` needs to be escaped in `<syntaxhighlight>` ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#XSS%20is%20escaped)).
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. The table of contents (TOC) is not supported.
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