Automatic creation of DIVs
Lou Quillio
public at quillio.com
Sun Feb 13 11:44:36 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There'll eventually be a shorthand for assigning attribute values to
Markdown-generated block elements.
http://six.pairlist.net/pipermail/markdown-discuss/2005-January/000960.html
Whatever it turns out to be, it'll achieve most of the desired effect:
arbitrary hooks for CSS and in-document link targets.
This MarkdownJ idea (which is cool) actually proposes Markdown syntax
for a currently unsupported element (`<div>`) *and* an
attribute-assignment method -- for it alone. Aren't these better
considered separately? A general shorthand for attributes would apply
to any `<div>` syntax implemented.
But I'm not sure how a `<div>` syntax would square with this: "... the
single biggest source of inspiration for Markdown?s syntax is the format
of plain text email."
http://daringfireball.net/projects/markdown/
LQ
jmutchek-markdown at martiansoftware.com wrote:
> First off, new mailing list member here. I have been reading the archives
> for some time now, but haven't had a need to post (markdown just works, and
> works well).
>
> Second, thanks to Pete Bevin for his great work on porting Markdown to Java
> (MarkdownJ). Pete has asked me to take over maintenance of the port moving
> forward. I will do my best to live up to the standard Pete has set on the
> project.
>
> On to the suggestion.
>
> Marty Lamb has suggested a new feature for MarkdownJ that I really like and
> would love to see in the core syntax.
>
> Basically, it converts blocks like:
>
> (sidebar)
> This is my *sidebar text*.
> (end of sidebar)
>
> To:
>
> <div class="sidebar">
> <p>This is my <strong>sidebar text</strong>.</p> </div>
>
> The (sidebar) and (end of sidebar) elements must appear on their own lines.
>
> Of course, it's up to stylesheets to do anything special with that div. I
> would also have it perform a simple transformation on the contents of the
> first parentheses, converting it to lowercase and concatenating multiple
> words with an underscore separator, so:
>
> (Java code)
> (end of Java code)
>
> becomes:
>
> <div class="java_code">
> </div>
>
> I believe that this syntax would fall squarely in the spirit of readable
> text source (something I would expect to see in a plain text email).
>
> Marty has a tested implementation for MarkdownJ that works great - I would
> be interested to hear the list's opinions.
>
> Thanks,
> John
>
>
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
- --
+++++++++++++++++++++++++++++++++++++
Lou Quillio
Box 459, Cambridge, NY USA 12816-1143
518.724.0802 (home, VoIP)
518.788.8569 (cell)
http://quillio.com/
+++++++++++++++++++++++++++++++++++++
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCD4P0Wb6NuB4EK7oRAuv0AKCA9FKF79BcDaO7HXnTL8lvDGdr0gCfa3QN
nUcn4sFMqLzCDp+OLzJXsSs=
=zZXA
-----END PGP SIGNATURE-----
More information about the Markdown-Discuss
mailing list