[cl-markdown-devel] div tags
Hans Halvorson
hhalvors at Princeton.EDU
Tue Feb 27 16:15:00 UTC 2007
Gary,
I agree with your first impulse. It would be very natural to use
<div> tags to split a document up into chunks, but then to use
markdown syntax within the individual chunks.
For a precedent at deviating from the original markdown syntax, you
might look at:
http://sophos.berkeley.edu/macfarlane/pandoc/README.html (see the
section on "Embedded html").
Thanks for your attention to these issues.
Best,
Hans
At Tue, 27 Feb 2007 10:15:05 -0500,
Gary King wrote:
>
> Hi Hans,
>
> I have a fix for the errant paragraph tags but I'm not sure I like
> that Markdown doesn't apply markdown inside the blocks. I.e., I'd
> rather that
>
> <div>
>
> ## Header
>
> </div
>
> become
>
> <div>
> <h2>Header</h2>
> </div>
>
> What's your opinion? Is there a justification for one behavior over
> the other.
>
> thanks,
>
> On Feb 26, 2007, at 9:50 AM, Hans Halvorson wrote:
>
> > cl-markdown does not yet treat <div> tags in the special way that
> > perl-markdown treats them; instead cl-markdown wraps <div> tags in <p>
> > tags. Here is an example input string:
> >
> >
> > input string (9 lines total):
> > =============================
> >
> > <div class="header">
> >
> > Header text
> >
> > </div>
> >
> > # Heading
> >
> > Some text
> >
> >
> > Here are the respective output strings:
> >
> > cl-markdown output:
> > ===================
> >
> > <p><div class="header"> </p><p>Header text </p><p></div> </
> > p><h1>Heading </h1>
> > <p>Some text </p>
> >
> >
> > perl-markdown output:
> > =====================x
> >
> > <div class="header">
> >
> > Header text
> >
> > </div>
> >
> > <h1>Heading</h1>
> >
> > <p>Some text</p>
> >
> >
> > See the description of how perl-markdown treats div tags:
> > http://daringfireball.net/projects/markdown/syntax#html
> >
> > Thanks,
> > Hans
> > _______________________________________________
> > cl-markdown-devel mailing list
> > cl-markdown-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-markdown-devel
>
> --
> Gary Warren King, metabang.com
> Cell: (413) 885 9127
> Fax: (206) 338-4052
> gwkkwg on Skype * garethsan on AIM
>
>
>
>
More information about the Cl-markdown-devel
mailing list