hougesen / mdsf

Format markdown code blocks using your favorite code formatters.
MIT License
12 stars 0 forks source link

feat(config): add support for fallback formatters #446

Closed hougesen closed 1 month ago

hougesen commented 1 month ago

This pr adds support for global formatters that are ran on all snippets, and fallback formatters which are only ran on files with no existing formatter (or global formatters).

* is used to signify global formatters.

{
  "languages": {
    "*": "typos"
  }
}

_ is used for fallback formatters.

{
  "languages": {
    "_": "prettier"
  }
}
hougesen commented 1 month ago

Glad you like it 😄