macteo / Marklight

Markdown syntax highlighter for iOS
Other
638 stars 44 forks source link

use of tab width #13

Open DivineDominion opened 7 years ago

DivineDominion commented 7 years ago

Hi,

just discovered that _tabWidth is only used for things like "when does a code block start?" -- but the Markdown convention and the CommonMark specs are pretty clear about 4 spaces or 1 tab to be required.

In a private branch I'm working on, I'm replacing this with the spec-derived values at the moment. Do you intend to use _tabWidth for anything else, though, @macteo ? For example, the comment states it's used for "tab replacement", but such replacement code is not implemented anywhere.

-- Christian

macteo commented 7 years ago

You are good to go with the spec-derivated value.