Fixed retext-english usage
Initial checklist
- [x] I read the support docs
- [x] I read the contributing guide
- [x] I agree to follow the code of conduct
- [x] I searched issues and couldn’t find anything (or linked relevant results below)
- [ ] If applicable, I’ve added docs and tests
Description of changes
retext-english now provides a Parser object. The previous code will not run with the current version of retest-english, which will trigger the warning TypeError: Cannot call a class constructor without |new| in runtime.
The solution is import the Parser object from the package and use it instead when generating the syntax tree.
Sorry for the wait, thanks for your patience.
I’ve been working on the releases. The parsers are now no longer exported.
I think you can get it from the parse-english package. Could you try updating to that?
Thanks for your patience.
I rewrote all guides in https://github.com/unifiedjs/unifiedjs.github.io/commit/97178c605a938e2cc6ce40ce1dbc598773f2ac93. See it live here!