Noticed the patterns for setext style headings are: ^(.+)[ \t]*\n=+[ \t]*\n+ Should be: ^(.+?)[ \t]*\n=+[ \t]*\n+
Allan Odgaard <29mtuz102@sneakemail.com> wrote on 10/7/06 at 6:27 AM:> Noticed the patterns for setext style headings are: > ^(.+)[ \t]*\n=+[ \t]*\n+ > Should be: > ^(.+?)[ \t]*\n=+[ \t]*\n+Why? I can't see where this would make a difference. -J.G.
On 7. Oct 2006, at 06:27, Allan Odgaard wrote: Replying to myself here, as I didn?t get any other replies than the latest from A. Pagaitzis (so checked the archive).> Noticed the patterns for setext style headings are: > ^(.+)[ \t]*\n=+[ \t]*\n+Here (.+) is greedy and thus will match as much as possible, including trailing tabs or spaces, thus leaving the [ \t]* with nothing (which will then do zero repeats). Example: % Markdown.pl <<< $'Test \n=\n' <h1>Test </h1> While it doesn?t matter, I would expect the intended output to be: <h1>Test</h1> And if not, well, then the above regexp could just as well be: ^(.+)\n=+[ \t]*\n+
On 9. Oct 2006, at 18:14, Robert Ullrey robert_ullrey-at-mac.com | Markdown| wrote:> Just to let everyone know, markdown now has it?s own official file > extension; ?mdml?. > > <http://www.file-extensions.org/mdml/markdown-markup-language/91573/>Who came up with that? In TextMate we associate markdown, mdown, markdn, and md with Markdown, but not mdml. Now, it?s no problem to add another, but I?ve just never came across mdml, nor was it mentioned when I asked JG for which extensions are in use. That said, I do embrace an official extension and mdml is not bad.
Allan Odgaard wrote this pithy remark on 10/9/06>Who came up with that?Not sure. I was searching to see it there was an official one. I have been using md for a while now. It looked official enough that I thought JG put it in. Robert __________________________________________________________ Robert Ullrey Phone: (916) 600-5619 E-mail: robert_ullrey@mac.com Please avoid sending me Word or PowerPoint attachments. Please send as universally readable RTF files. See http://www.gnu.org/philosophy/no-word-attachments.html
On 10/9/06, Robert Ullrey <robert_ullrey@mac.com> wrote:> Not sure. I was searching to see it there was an official one. I have > been using md for a while now. It looked official enough that I thought > JG put it in.Even weirder is that there is a markup language called MDML -- the "Market Data Markup Language". Which, I'd assume, would want first crack at the .mdml extension, provided they don't just stick with .xml. -- "May the forces of evil become confused on the way to your house." -- George Carlin
* Robert Ullrey <robert_ullrey@mac.com> [2006-10-09 18:15]:> Just to let everyone know, markdown now has it?s own official > file extension; ?mdml?. > ><http://www.file-extensions.org/mdml/markdown-markup-language/91573/>I have never heard of any of that extension, file-extensions.org or an official authority for file extensions. * Allan Odgaard <29mtuz102@sneakemail.com> [2006-10-09 18:35]:> In TextMate we associate markdown, mdown, markdn, and md with > Markdown, but not mdml.I use `mkd` and have seen it used in one or two other places as well. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>