wikiparser-node 1.24.0 → 1.25.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 (52) hide show
  1. package/README.md +7 -2
  2. package/bundle/bundle-es8.min.js +23 -23
  3. package/bundle/bundle-lsp.min.js +36 -0
  4. package/bundle/bundle.min.js +29 -0
  5. package/dist/bin/config.js +1 -1
  6. package/dist/index.js +18 -10
  7. package/dist/lib/lsp.d.ts +2 -2
  8. package/dist/lib/lsp.js +2 -2
  9. package/dist/lib/text.js +2 -2
  10. package/dist/src/arg.js +2 -2
  11. package/dist/src/attribute.js +7 -7
  12. package/dist/src/attributes.js +3 -3
  13. package/dist/src/converterFlags.js +1 -1
  14. package/dist/src/extLink.js +1 -1
  15. package/dist/src/gallery.js +1 -1
  16. package/dist/src/heading.js +4 -4
  17. package/dist/src/html.js +6 -6
  18. package/dist/src/imageParameter.js +2 -2
  19. package/dist/src/imagemap.js +2 -2
  20. package/dist/src/index.js +1 -1
  21. package/dist/src/link/base.js +4 -4
  22. package/dist/src/link/file.js +6 -5
  23. package/dist/src/link/galleryImage.js +1 -1
  24. package/dist/src/link/index.js +1 -1
  25. package/dist/src/link/redirectTarget.js +1 -1
  26. package/dist/src/magicLink.js +3 -3
  27. package/dist/src/nested.js +1 -1
  28. package/dist/src/nowiki/comment.js +1 -1
  29. package/dist/src/nowiki/index.js +1 -1
  30. package/dist/src/nowiki/quote.js +2 -2
  31. package/dist/src/paramTag/index.js +1 -1
  32. package/dist/src/parameter.js +1 -1
  33. package/dist/src/table/index.js +2 -2
  34. package/dist/src/table/td.js +1 -1
  35. package/dist/src/table/trBase.js +1 -1
  36. package/dist/src/tagPair/ext.js +2 -2
  37. package/dist/src/tagPair/include.js +2 -2
  38. package/dist/src/transclude.js +4 -4
  39. package/dist/util/constants.js +2 -1
  40. package/dist/util/lint.js +10 -8
  41. package/extensions/dist/base.js +378 -0
  42. package/extensions/dist/codejar.js +57 -0
  43. package/extensions/dist/editor.js +159 -0
  44. package/extensions/dist/highlight.js +30 -0
  45. package/extensions/dist/lint.js +80 -0
  46. package/extensions/dist/lsp.js +89 -0
  47. package/extensions/editor.css +59 -0
  48. package/extensions/ui.css +1 -0
  49. package/i18n/en.json +77 -0
  50. package/i18n/zh-hans.json +71 -56
  51. package/i18n/zh-hant.json +71 -56
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -17,11 +17,11 @@ WikiParser-Node is an offline [Wikitext](https://www.mediawiki.org/wiki/Wikitext
17
17
 
18
18
  ## Mini (also known as [WikiLint](https://www.npmjs.com/package/wikilint))
19
19
 
20
- This version provides a [CLI](https://en.wikipedia.org/wiki/Command-line_interface), but only retains the parsing functionality and linting functionality. The parsed AST cannot be modified. It is used for the [WikiParser Language Server](https://marketplace.visualstudio.com/items?itemName=Bhsd.vscode-extension-wikiparser) VS Code extension.
20
+ This version provides a [CLI](https://en.wikipedia.org/wiki/Command-line_interface), but only retains the parsing functionality and linting functionality. The parsed AST cannot be modified. It is used for the [Wikitext LSP](https://www.npmjs.com/package/wikitext-lsp) the [WikiParser Language Server](https://marketplace.visualstudio.com/items?itemName=Bhsd.vscode-extension-wikiparser) VS Code extension.
21
21
 
22
22
  ## Browser-compatible
23
23
 
24
- A browser-compatible version, which can be used for code highlighting or as a linting plugin in conjunction with editors such as [CodeMirror](https://codemirror.net/) and [Monaco](https://microsoft.github.io/monaco-editor/). ([Usage example](https://bhsd-harry.github.io/wikiparser-node))
24
+ A browser-compatible version, which can be used for code highlighting or as a linting plugin in conjunction with editors such as [CodeMirror](https://www.npmjs.com/package/@bhsd/codemirror-mediawiki) and [Monaco](https://www.npmjs.com/package/monaco-wiki). ([Usage example](https://bhsd-harry.github.io/wikiparser-node))
25
25
 
26
26
  # Installation
27
27
 
@@ -93,6 +93,9 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
93
93
 
94
94
  ## HTML conversion
95
95
 
96
+ <details>
97
+ <summary>Expand</summary>
98
+
96
99
  ### Extension
97
100
 
98
101
  1. Many extensions are not supported, such as `<indicator>` and `<ref>`.
@@ -140,3 +143,5 @@ A full database dump (`*.xml.bz2`) scan of Chinese Wikipedia's ~3.5 million arti
140
143
  ### Miscellaneous
141
144
 
142
145
  1. Illegal HTML entities ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Illegal%20character%20references%20(T106578%2C%20T113194))).
146
+
147
+ </details>