A syntax proposal: attributes for referenced links

Fletcher T. Penney fletcher at alumni.duke.edu
Tue Oct 11 11:57:01 EDT 2005


I am somewhat of a minimalist, and have generally been against
Markdown syntax to include attributes. But I have to admit that I
don't see anything wrong with this approach. It keeps the attributes
out of the text, and out of the way.

I like it (for whatever that's worth... ;)

Something similar could be done for images, for those who really want
width and height attributes.


Fletcher

On Oct 11, 2005, at 11:37 AM, Choan C. Gálvez wrote:


> Hi all.

>

> I run an Spanish language blog where I usually link resources

> written in English, so I'd like to markup (some) links this way:

>

> <a href="http://daringfireball.net/projects/markdown/"

> hreflang="en">Markdown</a>

>

> Would it be possible to extend the markdown syntax to allow this?

> I'm thinking about reusing the reference link syntax, this way:

>

> Blah blah [markdown][md] blah blah.

>

> [md]: http://daringfireball.net/projects/markdown/syntax

> "Syntax description" hreflang=en

>

> This way, we could include any attribute in referenced links, for

> example:

>

> Blah blah [markdown][md] blah blah.

>

> [md]: http://daringfireball.net/projects/markdown/syntax

> "Syntax description" hreflang=en class=anything lang=en

>

> (The lang attribute would translate both into lang="en" and

> xml:lang="en".)

>

> What do you think about it?

>

> Regards,

> Choan

>

> PS: Hope my "English" makes some sense today.

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>



--
Fletcher T. Penney
fletcher at alumni.duke.edu

On two occasions I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?'
I am not able rightly to apprehend the kind of confusion of ideas
that could provoke such a question.
- Charles Babbage


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3949 bytes
Desc: not available
Url : http://six.pairlist.net/pipermail/markdown-discuss/attachments/20051011/377179fa/smime.bin


More information about the Markdown-Discuss mailing list