Comments (3)
PEG 模式,是需要实现所有场景,对每一种变数都覆盖到,有一个漏掉的都不行
from autocorrect.
所以你看 autocorrect 里面,我有个 OTHER 类型,用于覆盖那些我没支持的,然后转换的时候保持原始输出
from autocorrect.
https://github.com/huacnlee/autocorrect/blob/main/src/lib/grammar/markdown.pest 这个不能用于参考,autocorrect 的场景是为了修正 “字符串” 里面的格式,所以这个 markdown.pest
文件优先是找出了不想处理的部分,忽略掉了。
而其他的 pest 文件,例如 ruby.pest
和 Markdown 的处理相反,是找出 string, comment 等需要处理的,把其他未识别的当成 other
不做处理。
from autocorrect.
Related Issues (20)
- 下载 autocorrect 时出现的问题 HOT 2
- spellcheck: 中文词语纠正需要空格分割 HOT 2
- [Markdown] Cannot handle space between punctuation and backtick HOT 4
- VSCode中,无法对半角冒号后跟半角逗号的句子进行格式化 HOT 2
- Doesn't work in Markdown code block HOT 1
- The word at the end of the sentence is not checked. HOT 2
- v2.5.8 report error /lib64/libc.so.6: version `GLIBC_2.32' not found HOT 3
- 英文前面有符号时会导致失效 HOT 2
- Markdown soft wrap incorrect HOT 1
- Add rule for config space between `-` HOT 1
- 一种未给出修复建议的情况 HOT 2
- autocorrect 安装问题 HOT 3
- [Markdown] Spellcheck: should ignore code block with indentation
- Latex 中的文字与代码中间增加空格
- 中文之间的英文分号不会被纠正 HOT 1
- 在使用过程中遇到了无法正常格式化的情况 HOT 4
- [功能请求] 是否可以在 markdown 的格式化中支持反引号 HOT 2
- [Bug] Markdown 中的 URL link 未被处理
- [VS Code插件]如何配置.autocorrectrc文件 HOT 1
- Possible mistake in html.pest and javascript.pest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocorrect.