editorconfig / editorconfig-defaults

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add defaults for markdown

hax opened this issue · comments

This is my personal config for markdown: https://github.com/hax/dotfiles/blob/master/src/.editorconfig#L45-L58

  1. Markdown should use indent_size = 4 as default.
  2. For old-style markdown, we may also need trim_trailing_whitespace = false, but I don't suggest to add this because it's too bad to rely on illegible trailing spaces.

Can you make a PR 😄 ?

PR ready.

Note, after reading CommonMark spec again, I realize tab_width=4 is much proper than indent_size=4, because it is allowed to use both spaces/tabs for indentation.