Attribute references

Jelks Cabaniss jelks at jelks.nu
Sun Jan 9 15:02:41 EST 2005


John Gruber wrote:
>     ## The Lousiana Purchase  {lp}
> 
>     Napolean was, unquestionably, a brilliant military strategist, but
>     he was not a very good real estate manager.
> 
>     {lp}: id="louisiana-purchase"  class="h2-section-start"
> 
> Which would generate:
> 
>     <h2 id="louisiana-purchase"  class="h2-section-start">
>     The Louisiana Purchase</h2>
> 
>     <p>Napolean was, unquestionably, a brilliant military strategist,
>     but he was not a very good real estate manager.</p>

I like it.

> The similarity to link references is, hopefully, obvious. I'm
> thinking there would *only* be this reference-style syntax, with no
> provision for assigning tag attributes inline in the article text
> itself. (If you want to do that, just use real HTML tags.)

What about something like

	Don't engage in *ad hominem*{foreign} attacks.

yielding

	<p>Don't engage in <em class="foreign">ad hominem</em> attacks.</p>

Indirection is good, but I'm convinced that many people will also want a way
to explictly set -- inline and otherwise -- both ID and CLASS.	I know I do.

/Jelks



More information about the Markdown-Discuss mailing list