`time` element syntax
David Chambers
david.chambers.05 at gmail.com
Thu Jun 2 05:08:26 EDT 2011
Hi folks,
I expect that the response to this post will be "we don't need such a
thing", but humour me for a moment by pretending that in fact we do.
HTML5 added a number of new tags to the mix, but arguably the most
significant is the `time` element. It associates a machine-readable
timestamp with a human-readable string (e.g. `<time
datetime="2011-05-30T15:00-07:00">30 May 2011</time>`).
I would love to be able to write something like `[30 May
2011]{2011-05-30T15:00-07:00}`.
`/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(?:[.](\d+))?)?([-+]\d\d:\d\d|Z)$/`
could be used to ensure that only valid `datetime` attribute values are
matched. This would avoid false positives and would keep `[foo]{bar}`
available for other functions, potentially.
Are there any reasons not to use `[human]{computer}`? Can anyone suggest a
better syntax?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20110602/0fe35951/attachment.html>
More information about the Markdown-Discuss
mailing list