Már Örlygsson | 6 Jun 00:16 2006
Picon

Markdown.pl development?

Hi. Is it just me or is there an elephant in here?
</tongue-in-cheek>

The official Markdown homepage
(http://daringfireball.net/projects/markdown) offers the 18-month-old
version 1.0.1 as a download, and the Dingus page purports to be run on
a version 1.0.2b6 - which seems to offer pretty much the same
functionality as the old 1.0.1 version.

My question is: Is there any active development going on with the
"official" Markdown.pl plugin?  Should I stop holding my breath and
turn my attention (and donation dollars) to some fork project? If so
which one?

There are several features that have been discussed at length (simple
tables, definition lists, id-attributes, a better `img` syntax, better
ordered lists, etc) that I'd like to see implemented and be able to
start using in my documents, without the fear that the "official"
standard markdown syntax might eventually move in a completely
different direction leaving me with a backlog of "funky" markdown
documents.

(P.S. I tried browsing through the mailing-list's web-archives for
possible answers, but found them all missing except April and May
2006.)

--

-- 
Már
Eric Heimerman | 8 Jun 16:37 2006

parsing question - lists and blockquotes

I'm using the PHP port of Markdown, but I noticed the same effect on 
your dingus <http://daringfireball.net/projects/markdown/dingus>
The problem I'm seeing is when I have an bulleted list and the last item 
of the list contains a block quote.  The blockquote does not terminate 
correctly, and adding another blockquote after the list ends up 
extending the original blockquote.  Here's what I mean:

##Heading 1
- Item 1
- Item 2
- Item 3 contains a blockquote:
 > quote line1 
 > quote line2

##Heading 2
 > This should be a new blockquote 
 > but turns out to be just a 
 > continuation of the first blockquote 
 > and doesn't get indented

##Heading 3
 > Another block quote here. 
 > this one is correct

This becomes...

<h2>Heading 1</h2>

<p><ul>
<li>Item 1</li>
(Continue reading)

Michel Fortin | 8 Jun 17:22 2006

Re: parsing question - lists and blockquotes

Le 8 juin 2006 à 10:37, Eric Heimerman a écrit :

> ##Heading 1
> - Item 1
> - Item 2
> - Item 3 contains a blockquote:
>  > quote line1
>  > quote line2

Separating the blockquote with a blank line should do the trick, but  
then "Item 3 contains a blockquote:" will be made a paragraph.

Interestingly, PHP Markdown Extra kinda "solves" your problem by  
*not* making a blockquote inside the list, which I think is the  
expected behaviour when the list item doesn't contain any paragraph.

Michel Fortin
michel.fortin <at> michelf.com
http://www.michelf.com/
A. Pagaltzis | 8 Jun 18:19 2006
Picon
Picon

Re: parsing question - lists and blockquotes

* Michel Fortin <michel.fortin <at> michelf.com> [2006-06-08 17:25]:
> Interestingly, PHP Markdown Extra kinda "solves" your problem
> by *not* making a blockquote inside the list, which I think is
> the expected behaviour when the list item doesn't contain any
> paragraph.

Agreed: if the quotemarks are not indented, I would expect that
the blockquote not be pulled into the list item. If they are,
though, I would expect the blockquote to go inside the list item.
Sometimes exacting indentation is useful to disambiguate.

Aside from that though, the output’s screwy tag nesting indicates
that this is a case of a bonafide bug where Markdown.pl may be
resolving a construct in a way that is not even intended in the
syntax rules.

Regards,
--

-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>
Waylan Limberg | 8 Jun 19:55 2006
Picon

Re: parsing question - lists and blockquotes

On 6/8/06, Michel Fortin <michel.fortin <at> michelf.com> wrote:
>
> Interestingly, PHP Markdown Extra kinda "solves" your problem by
> *not* making a blockquote inside the list, which I think is the
> expected behaviour when the list item doesn't contain any paragraph.
>

I just checked the python implementation and it appears to be the
same. You do not get a blockquote at all unless there is a line
between the list item and the blockquote. Like this:

...
- Item 3 contains a blockquote:

 > quote line1
 > quote line2
...

I tested that in perl and it seems to work corectly there as well. The
blockquote is part of the list item and ends before the next heading.

As an aside, python requires at least 4 spaces of indent, while perl
requires only 1. I also noted that python wraps all the list items in
<p> tags while perl only wrapped item 3. Apparently the python
implementation looks ahead and if any one item in the list is wrapped
in a <p> then all of them are.

--

-- 
----
Waylan Limberg
(Continue reading)

Ben Wilson | 9 Jun 00:57 2006
Picon

Re: parsing question - lists and blockquotes

On 6/8/06, Eric Heimerman <eric <at> heimerman.org> wrote:
> I'm using the PHP port of Markdown, but I noticed the same effect on
> your dingus <http://daringfireball.net/projects/markdown/dingus>
> The problem I'm seeing is when I have an bulleted list and the last item
> of the list contains a block quote.  The blockquote does not terminate
> correctly, and adding another blockquote after the list ends up
> extending the original blockquote.

Pardon me for asking an odd question on this, but I'm in the middle of
writing a big paper and so my mind is probably wrapped around too
formalistic a system of writing. So, I'm just being a curious snot.
When is there a need for a blockquote within a list? I don't think
I've encountered this condition "in the wild," so I was curious of
actual examples.

Also, I generally put a blank line after headings. Does this help
remedy the problem?

--

-- 
Ben Wilson
"Mundus vult decipi, ergo decipiatur"
A. Pagaltzis | 9 Jun 03:11 2006
Picon
Picon

Re: parsing question - lists and blockquotes

* Ben Wilson <dausha <at> gmail.com> [2006-06-09 01:00]:
> When is there a need for a blockquote within a list? I don't
> think I've encountered this condition "in the wild," so I was
> curious of actual examples.

I’ve used them when I used in numbered lists with multi-paragraph
list items to outline a line of argument, or to outline steps in
a chain of instructions where I quoted bits from source code or
configuration file.

> Also, I generally put a blank line after headings. Does this
> help remedy the problem?

Headlines are matched entirely independently of any blank lines
surrounding them. The following Markdown source:

    Para.
    # Head
    Para.

will result in the following HTML:

    <p>Para.</p>

    <h1>Head</h1>

    <p>Para.</p>

Regards,
--

-- 
(Continue reading)

Fletcher T.Penney | 10 Jun 23:02 2006

MultiMarkdown and MathML - new feature and request for help

A lot of people have expressed interest in combining math features  
with Markdown, but I am not aware of any real developments from these  
requests.

I was looking around and toying with [ASCIIMathPHP](http:// 
www.jcphysics.com/ASCIIMath/) and integrated it with MultiMarkdown  
and my xhtml2latex XSLT transforms.

You can include math as an inline formula by using a markup similar  
to inline code, such as ``x^2 + y^2 = 1`` (note the double ``).

You can include a formula as a separate paragraph in the same way, or  
with a leading tab like:

	`x_(1,2) = (-b+-sqrt(b^2-4ac))/(2a)`

(Note the single use of ` when prefaced by a tab)

The leading tab is not required, but is allowed as I suspect most  
people would like to be able to indent the formula to distinguish it  
from regular text, and don't want it interpreted as a code block.

The processing occurs in a several steps:

1) ASCIIMathPHP is run on the source markdown document converting the  
formulas into MathML blocks.

2) MultiMarkdown is then run in the usual manner, with or without  
SmartyPants

(Continue reading)

Michel Fortin | 11 Jun 01:18 2006

Re: MultiMarkdown and MathML - new feature and request for help

Le 10 juin 2006 à 17:02, Fletcher T.Penney a écrit :

> 	1) How can I create a valid document with a .html extension?  
> (requiring .xhtml is going to break a bunch of other stuff)

MathML (or any other XML language for that matter) is not recognized  
when the browser parse the file with the HTML parser. So for MathML  
to work, you need ".xhtml" or a "application/xhtml+xml" MIME type.  
And yes, unfortunately, that can break other stuff.

> 	2) How do I fix my xhtml2latex stylesheets (http:// 
> fletcher.freeshell.org/wiki/Markdown_and_XML) to work with a file  
> that has the xmlns attribute applied to the html node? (Or with  
> whatever comes out of an answer to #1 above)

Instead, try to answer this question: how to specify an XML namespace  
from the stylesheet?

> 	3) Any suggestions on the markup syntax?  I sort of arbitrarily  
> chose the use of an extra `.  I am sure there is a better way of  
> doing this, and would love to hear input.

Well, if you want to be sure Markdown doesn't change the content of  
your expression, you could wrap it into a processing instruction tag:

     <?ascii2math x_(1,2) = (-b+-sqrt(b^2-4ac))/(2a) ?>

This is less pretty, but has less chance to break too. With your  
syntax, what happens if you have some `<` in a formula? With the one  
above, only `?>` would be problematic, but you shouldn't see that too  
(Continue reading)

Fletcher T. Penney | 11 Jun 01:53 2006

Re: MultiMarkdown and MathML - new feature and request for help


On Jun 10, 2006, at 7:18 PM, Michel Fortin wrote:

> Le 10 juin 2006 à 17:02, Fletcher T.Penney a écrit :
>
>> 	1) How can I create a valid document with a .html extension?  
>> (requiring .xhtml is going to break a bunch of other stuff)
>
> MathML (or any other XML language for that matter) is not  
> recognized when the browser parse the file with the HTML parser. So  
> for MathML to work, you need ".xhtml" or a "application/xhtml+xml"  
> MIME type. And yes, unfortunately, that can break other stuff.

Placing

		<meta http-equiv="content-type" content="application/xhtml+xml" />

in the .html file doesn't work (I had already tried...)  Is there  
another way around this, or must the extension be .xhtml?  Surely  
something as simple as a filename extension is not this important on  
the web in 2006...

>> 	2) How do I fix my xhtml2latex stylesheets (http:// 
>> fletcher.freeshell.org/wiki/Markdown_and_XML) to work with a file  
>> that has the xmlns attribute applied to the html node? (Or with  
>> whatever comes out of an answer to #1 above)
>
> Instead, try to answer this question: how to specify an XML  
> namespace from the stylesheet?

(Continue reading)


Gmane