Minor regexp oversight for setext headings
    Michel Fortin 
    michel.fortin at michelf.com
       
    Mon Oct  9 18:53:52 EDT 2006
    
    
  
Le 9 oct. 2006 à 17:48, John Gruber a écrit :
> But what about this:
>
>     #this#
>     that
>
> Right now that gets turned into
>
>     <h1>this</h1>
>
>     <p>that</p>
>
> and I think that's just plain wrong. The only reason this works is
> by accident; so I plan to require a blank line here.
I totally agree that the syntax should not allow that. But I have no  
idea to how much people it could cause backward compatibility  
problems. Hopefully no one, but that's just a guess.
> After reading other comments in this thread, I'm inclined to say
> that Setext-style headers should not have embedded newlines. In
> which case the above would translate to:
>
>     <p>this
>     hello
>     =====
>     that</p>
>
> I think.
That's fine with me.
Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
    
    
More information about the Markdown-Discuss
mailing list