I want to use the Markdown filter on my pages, but using the HTML filter messes it up. However I still want to use it. Does anyone have an idea what other tags should be allowed beside these and what the safety issues are?

This the list I currently use - what else should be added?

<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt>
<dd><div><img> <src><h1><h2><h3><h4><h5><h6> <hr> <pre> <blockquote>

1 Answer 1


But you don't need enable all of it, just simple reorder the filters, and put the markdown filter under the html filter. So the html filter will drop the unavailable tags, before the markdown process the text, and build own html.

Edit: Checked the OpenAtrium's dedicated Markdown filter, it has the following in HTML

<div> <span> <br> <a> <em> <strong> <cite> <code> <strike> <ul> <ol> <li> <dl> <dt> <dd>
 <img> <blockquote> <p> <pre> <h1> <h2> <h3> <h4> <h5> <h6> <table> <caption> 
<thead> <th> <td> <tr> <sup> <sub>

Markdown PHP Version: 1.0.1n Markdown Extra Version: 1.2.4

And own filter weights: Atrium

  • The markdown filter is the last filter, but I still need to disable the HTML filter to get correct Markdown
    – vfclists
    Sep 29, 2012 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.