wikiparser-node 1.15.0 → 1.15.1
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 +17 -1
- package/bundle/bundle.es7.js +24 -24
- package/bundle/bundle.min.js +24 -24
- package/config/.schema.json +14 -1
- package/config/enwiki.json +1 -814
- package/config/llwiki.json +2 -35
- package/config/minimum.json +2 -0
- package/config/moegirl.json +2 -44
- package/config/zhwiki.json +25 -489
- package/coverage/badge.svg +1 -0
- package/dist/addon/table.js +1 -1
- package/dist/addon/token.js +18 -14
- package/dist/addon/transclude.js +5 -1
- package/dist/index.js +13 -3
- package/dist/lib/element.js +4 -0
- package/dist/lib/node.js +8 -3
- package/dist/lib/range.js +13 -6
- package/dist/lib/ranges.js +5 -2
- package/dist/lib/text.js +7 -6
- package/dist/lib/title.js +1 -0
- package/dist/mixin/attributesParent.d.ts +1 -1
- package/dist/parser/braces.js +1 -0
- package/dist/parser/externalLinks.js +1 -1
- package/dist/parser/hrAndDoubleUnderscore.js +1 -1
- package/dist/parser/magicLinks.js +1 -1
- package/dist/parser/selector.js +10 -2
- package/dist/src/atom.js +1 -0
- package/dist/src/attribute.d.ts +6 -4
- package/dist/src/attributes.js +3 -4
- package/dist/src/link/base.js +1 -0
- package/dist/src/link/file.js +3 -0
- package/dist/src/link/index.js +5 -6
- package/dist/src/link/redirectTarget.d.ts +2 -3
- package/dist/src/link/redirectTarget.js +1 -2
- package/dist/src/nowiki/comment.js +1 -0
- package/dist/src/onlyinclude.js +1 -0
- package/dist/src/table/index.d.ts +0 -3
- package/dist/src/table/index.js +2 -1
- package/dist/src/table/trBase.js +3 -2
- package/dist/util/debug.js +10 -2
- package/dist/util/diff.js +5 -0
- package/dist/util/string.js +12 -1
- package/extensions/dist/base.js +1 -1
- package/extensions/dist/test-page.js +89 -0
- package/extensions/es7/base.js +1 -1
- package/package.json +12 -6
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
[](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/codeql.yml)
|
|
3
3
|
[](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/node.js.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/wikiparser-node)
|
|
5
|
-
[](https://app.codacy.com/gh/bhsd-harry/wikiparser-node/dashboard)
|
|
6
|
+

|
|
6
7
|
|
|
7
8
|
# Other Languages
|
|
8
9
|
|
|
@@ -57,3 +58,18 @@ For more browser extensions, please refer to the corresponding [documentation](h
|
|
|
57
58
|
# Usage
|
|
58
59
|
|
|
59
60
|
Please refer to the [Wiki](https://github.com/bhsd-harry/wikiparser-node/wiki/Home-%28EN%29).
|
|
61
|
+
|
|
62
|
+
# Known issues
|
|
63
|
+
|
|
64
|
+
## Parser
|
|
65
|
+
|
|
66
|
+
1. Preformatted text with a leading space is only processed by [`Token.prototype.toHtml`](https://github.com/bhsd-harry/wikiparser-node/wiki/Token-%28EN%29#tohtml).
|
|
67
|
+
|
|
68
|
+
## HTML conversion
|
|
69
|
+
|
|
70
|
+
1. Many extensions are not supported, such as `<indicator>` and `<ref>`.
|
|
71
|
+
1. Most parser functions are not supported.
|
|
72
|
+
1. TOC is not supported.
|
|
73
|
+
1. Link trail is not supported ([Example](https://bhsd-harry.github.io/wikiparser-node/tests.html#1.%20Interaction%20of%20linktrail%20and%20template%20encapsulation)).
|
|
74
|
+
1. Incomplete `<p>` wrapping (Examples [1](http://bhsd-harry.github.io/wikiparser-node/tests.html#%3Cpre%3E%20inside%20a%20link), [2](http://bhsd-harry.github.io/wikiparser-node/tests.html#Templates%3A%20Scopes%20should%20not%20be%20expanded%20unnecessarily)).
|
|
75
|
+
1. URI encoding in free external links ([Example](http://bhsd-harry.github.io/wikiparser-node/tests.html#Parsoid%3A%20pipe%20in%20transclusion%20parameter)).
|