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)
- 关闭了enable lint之后即使每次保存时代码进行了格式化, 再次打开vscode时,注释里还是会出现下划波浪线的错误提示,ctrl+s保存后就没了,但下次打开时又出现了
- 着重号两边自动加空格 HOT 3
- [Feature Request] 链接语法 config/flag HOT 2
- autocorrect: false doesn't work HOT 1
- 可以忽略部分文件夹吗 HOT 1
- markdown代码块中的缩进都变成了一个空格 HOT 1
- Ability to adding HTML tag/element instead of spaces around English words
- 貌似不支持shell脚本 HOT 2
- 请求支持 `.qmd` 文件格式 HOT 2
- 不能通过自定义配置文件限制 `--fix` 的参数 HOT 1
- --fix 时的 print 占用太多时间 HOT 5
- Release NPM 的 CI 需要更新参数以兼容目前的 macos-14 HOT 1
- 请求增加跳过英文冒号的功能 HOT 3
- 禁用 To remove space near the fullwidth. 规则不生效 HOT 2
- 不格式化 link 中的内容
- autocorrect 2.9.3 未构建 GNU Linux 工具链版本 HOT 4
- Why does the following content still appear when I add --quiet? HOT 2
- something not very accurate in .autocorrectrc.default HOT 1
- problem with Go directives HOT 5
- [FR] 添加空格的反向操作:移除 CJK 与西文之间的空格 HOT 1
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.