Mixing HTML with markdown

Thomas Traub's Avatar

Thomas Traub

28 Sep, 2011 02:56 AM

I can't get Marked to mix HTML and markup

exemple: a list nested in a div

<div class="clients"> - [a link] (http://exemple.com/) - [another one] (http://exemple.com/) </div>

The list inside the div tag is not rendered

P.S.: this editor sucks, no good code formatting, every preview takes ages > 10 sec, so I just send it poorly formatted

  1. Support Staff 1 Posted by Brett on 28 Sep, 2011 04:15 AM

    Brett's Avatar

    By default MultiMarkdown ignores the contents of block-level HTML elements. You can, however, add "markdown=1" to the div tag and it will render everything inside of it.

    <div class="clients" markdown="1"> **Markdown text** </div>

  2. 2 Posted by Thomas Traub on 28 Sep, 2011 04:44 AM

    Thomas Traub's Avatar

    Thanks for the fast reply, got it working

  3. Brett closed this discussion on 28 Sep, 2011 04:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac