wikiparser-node 1.24.1 → 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.
- package/README.md +7 -2
- package/bundle/bundle-es8.min.js +23 -23
- package/bundle/bundle-lsp.min.js +25 -25
- package/bundle/bundle.min.js +23 -23
- package/dist/bin/config.js +1 -1
- package/dist/index.js +18 -10
- package/dist/lib/text.js +2 -2
- package/dist/src/arg.js +2 -2
- package/dist/src/attribute.js +7 -7
- package/dist/src/attributes.js +3 -3
- package/dist/src/converterFlags.js +1 -1
- package/dist/src/extLink.js +1 -1
- package/dist/src/gallery.js +1 -1
- package/dist/src/heading.js +4 -4
- package/dist/src/html.js +6 -6
- package/dist/src/imageParameter.js +2 -2
- package/dist/src/imagemap.js +2 -2
- package/dist/src/index.js +1 -1
- package/dist/src/link/base.js +4 -4
- package/dist/src/link/file.js +6 -5
- package/dist/src/link/galleryImage.js +1 -1
- package/dist/src/link/index.js +1 -1
- package/dist/src/link/redirectTarget.js +1 -1
- package/dist/src/magicLink.js +3 -3
- package/dist/src/nested.js +1 -1
- package/dist/src/nowiki/comment.js +1 -1
- package/dist/src/nowiki/index.js +1 -1
- package/dist/src/nowiki/quote.js +2 -2
- package/dist/src/paramTag/index.js +1 -1
- package/dist/src/parameter.js +1 -1
- package/dist/src/table/index.js +2 -2
- package/dist/src/table/td.js +1 -1
- package/dist/src/table/trBase.js +1 -1
- package/dist/src/tagPair/ext.js +2 -2
- package/dist/src/tagPair/include.js +2 -2
- package/dist/src/transclude.js +4 -4
- package/dist/util/constants.js +2 -1
- package/dist/util/lint.js +10 -8
- package/extensions/dist/base.js +4 -1
- package/i18n/en.json +77 -0
- package/i18n/zh-hans.json +71 -56
- package/i18n/zh-hant.json +71 -56
- 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://
|
|
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>
|