wikiparser-node 1.32.0 → 1.33.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 (59) hide show
  1. package/README.md +4 -0
  2. package/bundle/bundle-es8.min.js +28 -28
  3. package/bundle/bundle-lsp.min.js +30 -30
  4. package/bundle/bundle.min.js +24 -24
  5. package/coverage/badge.svg +1 -1
  6. package/dist/addon/attribute.js +27 -7
  7. package/dist/addon/link.js +15 -16
  8. package/dist/addon/table.js +139 -103
  9. package/dist/addon/token.js +3 -1
  10. package/dist/bin/config.js +1 -1
  11. package/dist/index.js +2 -3
  12. package/dist/lib/lintConfig.js +2 -0
  13. package/dist/lib/lsp.js +7 -0
  14. package/dist/lib/text.js +4 -4
  15. package/dist/render/magicWords.js +13 -6
  16. package/dist/src/attribute.d.ts +4 -5
  17. package/dist/src/attribute.js +11 -6
  18. package/dist/src/attributes.d.ts +2 -1
  19. package/dist/src/attributes.js +8 -2
  20. package/dist/src/imageParameter.d.ts +7 -3
  21. package/dist/src/imageParameter.js +15 -5
  22. package/dist/src/index.d.ts +8 -0
  23. package/dist/src/index.js +34 -21
  24. package/dist/src/link/base.d.ts +1 -1
  25. package/dist/src/link/base.js +10 -4
  26. package/dist/src/link/categorytree.d.ts +27 -0
  27. package/dist/src/link/categorytree.js +115 -0
  28. package/dist/src/link/file.d.ts +3 -2
  29. package/dist/src/link/file.js +4 -3
  30. package/dist/src/link/galleryImage.js +6 -7
  31. package/dist/src/multiLine/gallery.d.ts +1 -4
  32. package/dist/src/multiLine/gallery.js +1 -11
  33. package/dist/src/multiLine/imagemap.d.ts +0 -1
  34. package/dist/src/multiLine/imagemap.js +98 -152
  35. package/dist/src/multiLine/index.d.ts +1 -0
  36. package/dist/src/multiLine/index.js +77 -22
  37. package/dist/src/multiLine/inputbox.d.ts +3 -3
  38. package/dist/src/multiLine/inputbox.js +3 -7
  39. package/dist/src/multiLine/paramTag.d.ts +3 -4
  40. package/dist/src/multiLine/paramTag.js +6 -48
  41. package/dist/src/paramLine.d.ts +3 -0
  42. package/dist/src/paramLine.js +45 -7
  43. package/dist/src/table/base.d.ts +1 -1
  44. package/dist/src/table/index.d.ts +2 -2
  45. package/dist/src/table/index.js +3 -41
  46. package/dist/src/table/tr.d.ts +1 -1
  47. package/dist/src/tagPair/ext.js +19 -10
  48. package/dist/util/debug.js +10 -3
  49. package/dist/util/html.js +1 -0
  50. package/dist/util/sharable.d.mts +1 -0
  51. package/dist/util/sharable.js +62 -1
  52. package/dist/util/sharable.mjs +62 -0
  53. package/extensions/dist/base.js +1 -1
  54. package/extensions/typings.d.ts +40 -0
  55. package/extensions/ui.css +1 -1
  56. package/i18n/en.json +2 -0
  57. package/i18n/zh-hans.json +2 -0
  58. package/i18n/zh-hant.json +2 -0
  59. package/package.json +5 -4
package/README.md CHANGED
@@ -103,10 +103,12 @@ A full database dump (`*.xml.bz2`) [scan](https://www.npmjs.com/package/lint-wik
103
103
  ### Extension
104
104
 
105
105
  1. Many extensions are not supported, such as `<indicator>` and `<ref>`.
106
+ 1. `&` needs to be escaped in `<syntaxhighlight>` ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#XSS%20is%20escaped)).
106
107
 
107
108
  ### Transclusion
108
109
 
109
110
  1. Some parser functions are not supported.
111
+ 1. New lines in `{{localurl:}}` are not handled correctly ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Basic%20%7B%7Blocalurle%3A%7D%7D%20test)).
110
112
 
111
113
  ### Heading
112
114
 
@@ -115,6 +117,7 @@ A full database dump (`*.xml.bz2`) [scan](https://www.npmjs.com/package/lint-wik
115
117
  ### HTML tag
116
118
 
117
119
  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))).
120
+ 1. Table fostered content from `<table>` HTML tags ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#6.%20Encapsulate%20foster-parented%20transclusion%20content)).
118
121
 
119
122
  ### Table
120
123
 
@@ -127,6 +130,7 @@ A full database dump (`*.xml.bz2`) [scan](https://www.npmjs.com/package/lint-wik
127
130
  1. Link trail is not supported ([Example](https://bhsd-harry.github.io/wikiparser-node/tests.html#1.%20Interaction%20of%20linktrail%20and%20template%20encapsulation)).
128
131
  1. Block elements inside a link should break it into multiple links ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#%3Cpre%3E%20inside%20a%20link)).
129
132
  1. Invalid or missing images (Examples [1](https://bhsd-harry.github.io/wikiparser-node/tests.html#Fuzz%20testing%3A%20image%20with%20bogus%20manual%20thumbnail), [2](https://bhsd-harry.github.io/wikiparser-node/tests.html#Gallery%20with%20line%20not%20in%20the%20file%20namespace)).
133
+ 1. Link starting with `../` on a subpage ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Parent%20directory%20in%20redirect)).
130
134
 
131
135
  ### External link
132
136