Markdown Filter conflicts with Html Filter ( already rearranged it before markdown )
chuckychuck - May 22, 2008 - 13:42
Hi !
I'm using Drupal 6.2, with the latest Markdown with SmartyPants module
i created an input format with the following filters, in this order :
- Html corrector
- Html filter ( that will strip any html tag )
- Markdown & Smarty Pants
( I want this input format to allow Markdown syntax, no Html )
Then i tested the Markdown syntax to check if everything works, everything seems to, except the blockquote feature :
this text :
> Some text
> Some text
> Some text
should be rendered as
<blockquote>Some text Some text Some text</blockquote>but it is rendered as :
> Some text > Some text > Some text
:'(
i removed the html filter, now it works ...
But i need the html filter to strip out html tags so i'm don't know what to do ...
Is there any solutions ??
Thanks

Conflict with the HTML filter
Hi,
in the example you give, the problem is that the HTML filter replaces the '>' symbol by its HTML code '>'.
So, the only solution is to move the HTML filter after the Markdown one and to add the HTML tags that are output by Markdown in the "Allowed HTML tags" list of the HTML filter. For instance,
<p> <h1> ... <h6> <code> <blockquote> <pre>(might not be exhaustive).Stephane
You can edit the
You can edit the /modules/filter/filter.module file and change it to return the actual ">" instead of the entity code for >
<?phpif (substr($string, 0, 1) != '<') {
// We matched a lone ">" character
// We need this character for Markdown processing.
return '>';
}
?>