Posted by wuf31 on April 30, 2009 at 10:26am
Jump to:
| Project: | Markdown filter |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
## Header is not turning into
Header
as one would expect.
It works well with Markdown Preview though..
Help ?
Comments
#1
bump -- I'm seeing this problem as well.
#2
Subscribe - me too. I tried both Setext and atx - no luck.
#3
I take it back...mine is working fine. I had my line-break converter filter arranged after the Markdown filter and that was causing issues. If you're using the line break converter with Markdown the Markdown filter MUST be positioned after the line-break converter filter.
#4
...
This filter arrangement should have a handbook on it's own.
I'm pretty sure this is not the first time i've had a headache with it.
It's time consuming, figuring out the order of the input filter.
#5
Sorry, but my Markdown filter *is* positioned after the line-break converter filter, and the headers still aren't working. I tried turning off the line-break converter, but that didn't help either.
#6
I too was also having a lot of trouble with getting Markdown to work. In addition to the Headers not being rendered, there was an issue with line breaks being converted to
<br>tags -- not standard markdown behavior. *Finally* I arrived at a filter ordering that works out! I found the line-break converter had to be turned off, which makes sense as Markdown itself is supposed to take care of line breaks. I'm using the filters listed below, in the order listed:HTML filter
HTML corrector
Typogrify
Markdown
URL filter
With the line-break filter at the top of that list, everything seemed to be working except the unordered lists were not rendering (all the *'s were just dumped out into one line), so I ditched it. Also, there seems to be some subtle difference when Typogrify is ordered after Markdown. Having it in the order shown above seems to work better.
BTW, this contradicts what's said in the Markdown module's README.txt:
source:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/markdown/RE...
But when the HTML filter is ordered after the Markdown filter, the markup doesn't get rendered into html at all.
#7
My hero!!! This finally works for me.
I was resigning myself to spending a whole evening testing different filter orders, but thanks very much for doing it for us.
#8
Documentation update will be needed..
Thanks a lot, John :)
#9
Giving this a more descriptive title with the change to a documentation issue.
#10
Well, this is a really old thread, but since I've stumbled upon it and it's still active, I'd just like to point out that the configuration in #6 above will allow markdown to bypass the html filter settings on your site. So, if you enable it for anonymous commentators for example, they will be able to post images, headers, and all manner of stuff simply by using markdown format.
#11
Marking as duplicate of #1148542: Markdown conflicts with "Convert URLs into links" if Convert is run first. Documentation regarding conflicts of input filters has been added to main project page; feedback appreciated.