Re: header syntax.

On 21 November 2012 11:35, Dave Pawson <dave.pawson@gmail.com> wrote:
> The current MD has numerous options for headers.
> http://daringfireball.net/projects/markdown/syntax#header
>
> Two forms of underscore,
> what is called the 'atx' header, which has optional termination indicators.
>
> I'd propose that we adopt one.
>
> Options.
>
> 1. == underscore  (any length > 1 on following line, starting column 1)
> 2. -- hyphen underscore (any length > 1 on following line, starting column 1)
> 3. # header text #  where # is 1..6 repeat for different levels
> 4. # header text where # is 1..6 repeat for different levels
>
> My preference is for option 3.
>
> Please let us know which one you like, or whether you would like to
> support multiple versions.
>
>
> Issues: Unlike paragraphs, the 'start' indicator must be in column 1?  E.g.
>   #heading# is not seen as a heading?
> This appears inconsistant with para level block markup?

Inconsistent in 'error recovery'

# Both # in column 1 and === beneath. Transform to h1
==

# H1 in # start, --- beneath. Shows as h2
----

I.e. there would appear to be a hierarchy or ordering.

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Wednesday, 21 November 2012 12:51:45 UTC