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

Add `context.codeblock` config to speical enable / disable in codeblock. #211

Closed huacnlee closed 2 months ago

huacnlee commented 2 months ago

In .autocorrectrc

# Enable or disable in spatial context
context:
  # Enable or disable to format codeblock in Markdown or AsciiDoc etc.
  codeblock: 1

Ref https://github.com/apache/eventmesh-site/pull/226/files#r1645701069

ccoVeille commented 2 months ago

Related to #210 then

ccoVeille commented 2 months ago

Hey @hougesen

It's interesting how this project and yours are close

Here is the project I'm talking about https://github.com/hougesen/mdsf It's about formatting markdown blocks

Do you remember when I asked you to do the opposite and do not format the markdown outside the blocks

https://github.com/hougesen/mdsf/issues/138