mdast-util-to-markdown icon indicating copy to clipboard operation
mdast-util-to-markdown copied to clipboard

Figure out a way to support tabs

Open wooorm opened this issue 3 years ago • 0 comments

Initial checklist

Problem

Some folks like hard tabs. Markdown isn’t good at hard tabs. Maybe there’s a way to support it though.

The problem is that tabs don’t work well with whitespace sensitive languages, because well, certain indentation has meaning, which is sometimes unexpected, or can look different because tabs are displayed differently between team members.

Other languages (say, python) solve this by throwing errors and disallowing mixing tabs and spaces, but we can’t.

Solution

  • It’s unclear when tabs should be used.
  • It’s unclear if there are some edge cases where roundtripping would fail, there probably are though?

Alternatives

n/a

wooorm avatar Jan 12 '22 17:01 wooorm