huacnlee / autocorrect

A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean).
https://huacnlee.github.io/autocorrect
MIT License
894 stars 31 forks source link

[feature request]: allow to ignore content between `IGNORE_BLOCK_STRINGS` #170

Closed yin1999 closed 1 year ago

yin1999 commented 1 year ago

The case is here: https://github.com/mdn/translated-content/blob/29704eeb680dbcbef3f7e91937db493e05964156/files/zh-cn/web/javascript/reference/operators/right_shift/index.md?plain=1#L61-L64

Could we add a feature to ignore to "correct" the content here by wrapping this with IGNORE_BLOCK_STRINGS in markdown or HTML. Just like this:

<!-- autocorrect ignore-start -->

```plain
丢弃前: 11100110111110100000000000000110000000000001
丢弃后:             10100000000000000110000000000001
huacnlee commented 1 year ago

Use:

<!-- autocorrect-disable -->
<!-- autocorrect-enable -->

https://github.com/huacnlee/autocorrect#disable-by-inline-comment

yin1999 commented 1 year ago

Use:

<!-- autocorrect-disable -->
<!-- autocorrect-enable -->

https://github.com/huacnlee/autocorrect#disable-by-inline-comment

Thanks for the note :)