`time` element syntax
David Chambers
david.chambers.05 at gmail.com
Sun Jun 26 08:05:46 EDT 2011
Hi folks,
I've created a "datetimes"
extension<http://hashify.me/IyDigJxEYXRldGltZXPigJ0gZXh0ZW5zaW9uCgoyNiBKdW5lIDIwMTEKCkV4dGVuZHMgTWFya2Rvd24gYnkgYWRkaW5nIHN5bnRheCBmb3IgdGhlIFtIVE1MNSBgdGltZWAgZWxlbWVudF1bMV0uIFRoZSBzeW50YXggaXMgaWRlbnRpY2FsIHRvIE1hcmtkb3duJ3MgYWJicmV2aWF0aW9ucyBzeW50YXggaW50cm9kdWNlZCBieSBbUEhQIE1hcmtkb3duIEV4dHJhXVsyXSAodGhpcyBkb2VzIG5vdCBwcmVjbHVkZSB0aGUgImRhdGV0aW1lcyIgYW5kICJhYmJyZXZpYXRpb25zIiBleHRlbnNpb25zIGJlaW5nIHVzZWQgdG9nZXRoZXIpLgoKIyMgRXhhbXBsZXMKCiAgICBUaGUgYXJtaXN0aWNlIHRvb2sgZWZmZWN0IGF0IHRoZSBlbGV2ZW50aCBob3VyIG9mIHRoZSBlbGV2ZW50aCBkYXkgb2YgdGhlIGVsZXZlbnRoIG1vbnRoIG9mIDE5MTguCiAgICAKICAgICpbdGhlIGVsZXZlbnRoIGhvdXIgb2YgdGhlIGVsZXZlbnRoIGRheSBvZiB0aGUgZWxldmVudGggbW9udGggb2YgMTkxOF06IDE5MTgtMTEtMTEgMTE6MDAgR01UCgogICAgYmVjb21lcy4uLgoKICAgIDxwPlRoZSBhcm1pc3RpY2UgdG9vayBlZmZlY3QgYXQgPHRpbWUgZGF0ZXRpbWU9IjE5MTgtMTEtMTFUMTE6MDArMDA6MDAiPnRoZSBlbGV2ZW50aCBob3VyIG9mIHRoZSBlbGV2ZW50aCBkYXkgb2YgdGhlIGVsZXZlbnRoIG1vbnRoIG9mIDE5MTg8L3RpbWU+LjwvcD4KCiAgLSAtIC0KCiAgICBUaGUgbWVldGluZyBpcyBzY2hlZHVsZWQgZm9yIDEwIGE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h0dHA6Ly9taWNoZWxmLmNvbS9wcm9qZWN0cy9waHAtbWFya2Rvd24vClszXTogaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDUvY29tbW9uLW1pY3Jvc3ludGF4ZXMuaHRtbCN2YWxpZC1kYXRlLXN0cmluZwoKKlsyNiBKdW5lIDIwMTFdOiAyMDExLTA2LTI3IDA1OjAwIC03IHB1YmRhdGUK?mode:presentation>for
Showdown which provides `time` element syntax as discussed in this
thread. Be sure to hit the right arrow key to confirm that the document's
publication date is not marked up in the input text. :)
The syntax definition is extremely wordy. Depending on your familiarity with
regular expressions, you may prefer to read the actual
code<http://hashify.me/UmVndWxhciBleHByZXNzaW9uIHVzZWQgaW4gU2hvd2Rvd24ncyAiZGF0ZXRpbWVzIiBleHRlbnNpb246CgogICAgcmUgPSAvLy8KICAgICAgXG4/ICAgICAgICAgICAjIG9wdGlvbmFsIGxpbmUgYnJlYWsKICAgIF4gXHgyMHswLDN9ICAgICAjIHVwIHRvIHRocmVlIHNwYWNlcyBhdCB0aGUgYmVnaW5uaW5nIG9mIGEgbGluZQogICAgICBcKlxbKC4rPylcXSAgICMgWzFdIGRhdGUgYW5kL29yIHRpbWUgdGV4dCwgYmV0d2VlbiAiKlsiIGFuZCAiXSIKICAgICAgXHgyMD86XHgyMD8gICAjIGNvbG9uIChwcmVjZWRpbmcgc3BhY2UgYW5kIGZvbGxvd2luZyBzcGFjZSBib3RoIG9wdGlvbmFsKQogICAgCiAgICAgICggICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgWzJdIGRhdGUKICAgICAgICBcZHs0fSAgICAgICAgICAgICAgICAgICAgICAgIyB5ZWFyCiAgICAgIC0gKD86MFsxLTldfDFbMDEyXSkgICAgICAgICAgICMgbW9udGgKICAgICAgLSAoPzowWzEtOV18WzEyXVxkfDNbMDFdKSAgICAgIyBkYXRlCiAgICAgICkKICAgICAgKD86ICAgICAgICAgICAgICAgICAgICAgICAgICAgIyB0aW1lIGFuZCB0aW1lIHpvbmUgb2Zmc2V0PwogICAgICAgIFx4MjAKICAgICAgICAoICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBbM10gdGltZQogICAgICAgICAgKD86WzAxXVxkfDJbMC0zXSk6WzAtNV1cZCAjIGhvdXJzOm1pbnV0ZXMKICAgICAgICAgICg/OjpbMC01XVxkKD86XC5cZCspPyk/ICAgIyBzZWNvbmRzPwogICAgICAgICkKICAgICAgICBceDIwCiAgICAgICAgKD86ICAgICAgICAgICAgICAgICAgICAgICAgICMgdGltZSB6b25lIG9mZnNldAogICAgICAgICAgKEdNVHxVVEMpICAgICAgICAgICAgICAgICAjIFs0XSBVVEMKICAgICAgICB8IChbKy1dKSAgICAgICAgICAgICAgICAgICAgIyBbNV0gc2lnbgogICAgICAgICAgKCg/OjB8MSk/XGR8MlswLTNdKSAgICAgICAjIFs2XSBob3VycwogICAgICAgICAgKD86OihbMC01XVxkKSk/ICAgICAgICAgICAjIFs3XSBtaW51dGVzPwogICAgICAgICkKICAgICAgKT8KICAgICAgKFx4MjBwdWJkYXRlKT8gICAgICAgICAgICAgICAgIyBbOF0gcHViZGF0ZT8KICAgICAgW1x4MjBcdF0qICQKICAgIC8vL2dtCg==?mode:presentation>
.
David
On 5 June 2011 19:04, David Chambers <david.chambers.05 at gmail.com> wrote:
> Three people on markdown-discuss in agreement? Must be a new record. :)
>
> Thanks for weighing in, Waylan.
>
> David
>
>
>
> On 5 June 2011 18:57, Waylan Limberg <waylan at gmail.com> wrote:
>
>> On Sun, Jun 5, 2011 at 8:35 PM, David Chambers
>> <david.chambers.05 at gmail.com> wrote:
>> > Michel Fortin <michel.fortin at michelf.com> wrote:
>> >>
>> >> I'd tend to go for something even simpler:
>> >>
>> >> Some text 30 May 2011 more text.
>> >>
>> >>
>> >>
>> >> *[30 May 2011]: 2011-05-30 15:00 -07:00
>> >>
>> >> Basically, why do we need to force brackets in the text at all? Also,
>> why
>> >> force the writer to use 'T' as a time separator and strictly follow to
>> the
>> >> rules of HTML date syntax? It's much more readable without the 'T'.
>> >> Reformatting it to HTML's liking should be pretty trivial.
>> >
>> > I love this idea. I'm unfamiliar with PHP Markdown Extra's abbreviation
>> > syntax (I'll read up on it); building upon an established convention
>> sounds
>> > very sensible to me.
>>
>> I'll have to say I like this as well. It hadn't occurred to me that
>> like the abbreviation syntax, we don't need to mark up the text at
>> all.
>>
>> Regarding the time v. datetime, I picked datetime because that is the
>> name of the html attribute the same value would be assigned to. But
>> time is certainly shorter. Maybe you won't need either as Michel
>> suggests.
>>
>> --
>> ----
>> \X/ /-\ `/ |_ /-\ |\|
>> Waylan Limberg
>> _______________________________________________
>> Markdown-Discuss mailing list
>> Markdown-Discuss at six.pairlist.net
>> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20110626/bfba2d72/attachment-0001.html>
More information about the Markdown-Discuss
mailing list