wikiparser-node
wikiparser-node copied to clipboard
A Node.js/browser parser for MediaWiki markup with AST
- [x] [Parser tests](https://bhsd-harry.github.io/wikiparser-node/tests.html) - [ ] [API](https://github.com/bhsd-harry/wikiparser-node/wiki/Parser) tests
Don't have to be exhaustive, but adding `isValid(): [Severity, Rule, string]` and `childIsValid(n: number): [Severity, Rule, string]` methods for all types of tokens may be useful.
Below is an ongoing task list: - [x] AJAXPoll - [x] Cite - [x] [ComboBox](https://github.com/LLWiki/ComboBox) - [x] DynamicPageList - [x] Gallery - [x] ImageMap - [x] [Img](https://github.com/moegirlwiki/mediawiki-extension-MoeImgTag) - [x] InputBox...
- [ ] `lintConfig` field of [`Parser`](../wiki/Parser-%28EN%29) - [ ] .wikilintrc.json - [x] CLI `-r`/`--ext`/`--ignore` options for recursive linting (8c90c4938cfa5ba6389331eee17213f139e3a12c) - [ ] Document configuration files and comments
Especially useful for table-related templates (e.g., `{|` and `|}`). Original character offsets should be stored during expansion.