No Markdown in <div>s or <table>s ?

Milian Wolff mail at milianw.de
Thu Apr 23 07:23:48 EDT 2009


On Thursday 23 April 2009, Dan Dascalescu wrote:

> From http://daringfireball.net/projects/markdown/syntax#html:

> > Note that Markdown formatting syntax is not processed within block-level

> > HTML tags. E.g., you can’t use Markdown-style *emphasis* inside an

> > HTML block. [...] Unlike block-level HTML tags, Markdown syntax is

> > processed within span-level tags.

>

> How do people work around this when they want to apply Markdown to

> text in table elements, or to text in divs? For example, in a basic

> page with a grid layout, one would want to use markdown in the

> navigation <div> as well, say for a list of links. Seems like a pretty

> serious limitation.


There are extensions to the blank Markdown specification, for example PHP
Markdown Extra supports something like the following:

<div makdown="1">
Here comes more markdown!

* list
* foobar

</div>

--
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20090423/63647f97/attachment.pgp>


More information about the Markdown-Discuss mailing list