>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. Thanks, Dan
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>
Multimarkdown has a pretty good syntax for tables. In general it has the following bug which may be a feature: <div> is considered a tag but <DIV> is not. The latter is rendered as <p><DIV></p> which breaks the xhtml spec but which is rendered properly on every browser I've checked. There is also a flag inside multimarkdown that can be set to work inside what it considers block level tags. I ended up setting this, and forgetting it. I've been making the argument that div, html, and body (others?) are NOT block tags, but structural tags, and should be ignored. I took a look at the code to see if I could hack it to do this. Markdown has some heavy regexes. Not trivial. On Thu, Apr 23, 2009 at 5:15 AM, Dan Dascalescu <ddascalescu+markdown at gmail.com> 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. > > Thanks, > Dan > _______________________________________________ > Markdown-Discuss mailing list > Markdown-Discuss at six.pairlist.net > http://six.pairlist.net/mailman/listinfo/markdown-discuss >-- Sherwood Botsford Sherwood's Forests Warburg, Alberta T0C 2T0 http://www.sherwoods-forests.com 780-848-2548