netzpirat/haml-coffee

Markdown filter

mehcode opened this issue · 3 comments

Would you consider adding a :markdown filter that grabs all of its text content and calls like a markdown render function if its specified? I'm not asking to include the support by default as that would be an interesting amount of overhead (unless you want to of course); I can provide a haml.markdown function to the template.


This could be implemented by allowing custom filters to be able to be defined to just call some passed function, etc.

I'm fine with as long as it's implemented in a generic way by having a simple convention for unknown filters like your suggestion: A unknown filter :markdown is just delegated to haml.markdown and the result is then added to the result.

Closing this for now. Discussion can continue with a pull request 😄