macteo / Marklight

Markdown syntax highlighter for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use of tab width

DivineDominion opened this issue · comments

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

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