A reminder of the original design goal of Markdown - my personal thoughts

A. Pagaltzis pagaltzis at gmx.de
Tue Sep 6 00:18:11 EDT 2005


* John Gruber <gruber at fedora.net> [2005-09-05 20:25]:

> But then what about this:

>

> * First item

>

> * Second item.

>

> Second paragraph. {.foo}

>

> What does the `{.foo}` apply to? The paragraph? Or to the

> entire second item in the list?


The paragraph.

The only case where this is an issue is with paragraph tags,
because that’s the one construct which Markdown infers implicitly
from the whitespace in the document.

So the rule should be that when you have a multiparagraph
construct, and you want to apply the attribute to the surrounding
element, it must be in an empty “paragraph” by itself.

Hence to apply the class to the LI, you’d write

* First item

* Second item.

Second paragraph.

{.foo}

Analogously,

> {@cite=http://example.org/}

> Some quoted text from elsewhere.

I understand that this might still be deemed hard to explain; but
I think the rule as stated is as simple as any can be made.

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>


More information about the Markdown-Discuss mailing list