roop at forwardbias.in
Mon Sep 30 09:16:24 EDT 2013
> Le 27-sept.-2013 à 11:15, Roopesh Chander <roop at forwardbias.in> a écrit :
> > - If the user is not mixing tabs and spaces, he should be fine
> > - If the user is mixing tabs and spaces, but has read the syntax guide
> > and follows it, he should be fine
Actually, I realized the above is not true when there's a list item with
multiple paragraphs. Using _ for tabs and . for spaces and assuming
4-column tabs, this is how it would appear to him in a text editor:
So, even though they appear aligned (as required in the syntax), "para 2"
would not get identified as part of "item 2", which is incorrect. I don't
really have a solution however, because a solution would need tabstop as
> I still miss how it is an improvement over current Markdown.
I don't think it's interpretation of tabs is an improvement over Markdown.
I realize that this problem cannot be solved without getting tabstop as an
input, and doing that is not an option.
It's not quite a conscious decision to be different - just doing something
arbitrarily, because doing the right thing is impossible. I'm open for
> It's true that you can't solve the
> issue of editors having different lengths for tabs, but you're already
> so why do it differently from everyone else?
What is everybody else doing? Do you mean that everyone else is expanding
tabs while parsing using the "4-(column_number modulo 4)" method?
So, as far as I can see, these are the options:
1. Make it explicit in the syntax guide that tabs are not recommended.
Suggest using expandtab or such stuff.
2. Assume tabstop as 4 and expand the tabs when parsing using the
modulo 4)" method (atleast it would work for tab-users who have tabstop as
4, unlike the current always-4-expansion)
3. Do both the above
(Now that I think about it, I'm tending towards option #3, but I'll wait
for your opinions.)
On Sat, Sep 28, 2013 at 8:10 PM, Tom Humiston <tom at jumpingrock.net> wrote:
> On Sep 27, 2013, at 10:36 AM, Michel Fortin wrote:
> > *\tlist 1 item 1
> > * list 1 item 2
> > They will both look unaligned in your editor
> For 99% of users who aren't coders, it will look like they've tabbed into
> the next field of the web page.
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Markdown-Discuss