PHP Markdown Extra and Definition Lists
Posted
by Kirk Bentley
on Stack Overflow
See other posts from Stack Overflow
or by Kirk Bentley
Published on 2010-04-10T14:28:28Z
Indexed on
2010/04/10
14:33 UTC
Read the original article
Hit count: 418
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>
© Stack Overflow or respective owner