Markdown not creating paragraphs

Arthaey - December 26, 2006 - 05:36

I installed the marksmarty module and set it as the default filter. It applies inline styles (em and strong) and correctly creates links, but it doesn't turn double-newline-separated blocks of text into paragraphs. All the text just runs together as one big paragraph. Adding many newlines between paragraphs didn't work, either.

I tried debugging it with debug statements the devel module, which confirmed that the Markdown($text) method is, in fact, getting called. But then new updates I made the module didn't show up -- maybe a cache problem or something, though doing "empty cache" via the devel module didn't help. I haven't developed with Drupal before, so I don't know my way around yet.

Since automatically creating paragraphs is a major part of Markdown, I assume that a true bug like this wouldn't go unnoticed. So, the problem is likely in my setup somehow, but I don't know how to debug it further.

Any help would be appreciated.

--
AA

normal...

dman - December 26, 2006 - 10:18

Add the Drupal built-in line break converter to your filter profile.

It's available there, so I gues it wasn't seen as appropriate to bundle with another filter also. Modularization.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Overly restrictive HTML filter

Arthaey - December 26, 2006 - 13:08

The problem was actually an overly restrictive HTML filter that was being applied after the Markdown filter ran. Thank you for your help, though!

--
AA

 
 

Drupal is a registered trademark of Dries Buytaert.