Posted by alpirrie on August 18, 2009 at 6:56pm
Jump to:
| Project: | Markdown filter |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
I guess the title says it all. The markdown filter doesn't seem to work for CCK fields like textareas, even though it is applied to the default format, (and all other input formats). Is this by design?
Comments
#1
It is definitely not by design. If you set up that CCK textfield to support formats (so a format selector shows up), it should work with whatever format you have set up on your Drupal. Is that how you set up your CCK field?
#2
[see editing below]
Happened to me as well, then I have realized that the order of filters was wrong.
The order is not transparent in path /admin/settings/filters/[filterid] which shows it alphabetically - this misled me as the order was right.
Amir
[editing]:
Well, I was wrong - problem still exists. The only markdown which I have found to work is ** (making text strong). All other simply don't work and stripped off.
#3
Hi, I have the same exact issue. CCK text field/text area with input filter using Markdown is not processing the Markdown syntax at all. I tried both using Markdown in the default "Full HTML" and also made a new one with ONLY Markdown, but still a no go. The syntax just doesn't render and I was trying simple stuff like:
## header
__foo__
*foo*
**foo**
---
Drupal 6.14
CCK 6.x-2.5
Markdown 6.x-1.1
#4
I think this problem is resolved. I believe I was trying to get markdown to create tables but hadn't allowed these tags in the HTML filter (Doh!)
For other people who might inadvertently hit this brick wall:
HTML filter only allows the following tags by default:
<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>If you want Markdown to create headers, quotes, images (using  syntax), etc., you must add these tags into the allowed list in the HTML filter:
<h1> <h2> <h3> <h4> <h5> <pre> <blockquote> <img>You can even create tables provided you add
<table> <tbody> <thead> <th> <tr> <td>to your HTML filter's allowed tags list via admin/settings/filters/1/configure. (Change 1 to the number of the filter or navigate from admin/settings/filters.)
#5
Nope. Does not work for me although I have all the tags needed to make lists. Here are the allowed tags:
-
-
-
Re-activating this issue.
#6
Please post more information about your input format configuration, including which filters are running, what order they are running in, and what tags are in the allowed tags list for the HTML filter.
In my experience, this issue is always caused by collisions between input filters. For example, the HTML filter will strip out Markdown-generated tags that are not in the allowed HTML list. Another possibility is that another filter is firing before Markdown and modifying the text in ways that prevent Markdown from running -- perhaps by adding a paragraph tag or other block-level element.
#7
I never had this problem again, don't know what was the issue back then... Maybe I have forgotten to change the field's setting to filtered text (instead of plain text). Hence, closing.