Bhsd

Results 11 issues of Bhsd

- [x] [Parser tests](https://bhsd-harry.github.io/wikiparser-node/tests.html) - [ ] [API](https://github.com/bhsd-harry/wikiparser-node/wiki/Parser) tests

documentation
enhancement
WIP

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.

enhancement

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...

documentation
enhancement

## 总框架 ### 代码风格 - ~~避免使用`?.`、`??`等语法,并为过新的原型方法提供polyfill。~~ - [ ] 更新过时的写法,如用`Array.prototype.includes`代替`Array.prototype.indexOf`。 - [x] 避免使用脚本URL。 ### 初始化 - [x] 部分脚本的加载不需要等待`$.ready`。(#193) ### Api对象 - [x] 添加默认设置`{ formatversion: 2, errorformat: 'html' }``{ formatversion: 2...

TODO

Standardize API error handling. Whether to use "html" or "plaintext" is to be discussed.

# Why I apologize that my last PR (#26) did not test the interaction with the color input element. Because the change handler of the color input always convert RGB...

- [ ] `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

documentation
enhancement

Especially useful for table-related templates (e.g., `{|` and `|}`). Original character offsets should be stored during expansion.

enhancement

The linked documentation at https://luacheck.readthedocs.io/ is outdated, which still shows 0.26.0.

The new class MwnWikitextAST provides async parsing based on [[email protected]](https://www.npmjs.com/package/wikiparser-node/v/1.22.0).