views:

120

answers:

1

I'm currently generating a definition list with PHP Markdown Extra with the following syntax:

Term
:   Description
:   Description Two

My Other Term
:   Description

which generates the following HTML:

<dl>
    <dt>Term</dt>
    <dd>Description</dd>
    <dd>Description Two</dd>
    <dt>My Other Term</dt>
    <dd>Description</dd>
</dl>

Does anyone know how I can get Markdown to create separate definition lists for each definition term and descriptions to create markup like this?

<dl>
    <dt>Term</dt>
    <dd>Description</dd>
    <dd>Description Two</dd>
</dl>
<dl>
    <dt>My Other Term</dt>
    <dd>Description</dd>
</dl>
+1  A: 

I don't think it is currently possible. Try to insert some dummy element between the two DL so it doesn't treat them as one.

Ivo Sabev
Thanks Ivo, I'm currently resorting to using dummy elements but it defeats the purpose of have both clean markdown and markup :D
Kirk Bentley
I agree with you, try to bring the issue to the author maybe he will be interested to know.
Ivo Sabev