Announcing markdownify

Events happening in the community are now at Drupal community events on www.drupal.org.
davideads's picture

As part of my project for the US Department of Energy, I've released a module called Markdownify for work than integrates the Markdowify PHP library (convert HTML to Markdown) and provides a TinyMCE plugin that allows TinyMCE to be used as a Markdown source editor.

Check out the Markdownify module on Github.

Implementations:

Here are some screenshots of the editor in action:

Comments

I'd love to see the

bangpound's picture

I'd love to see the unformatted source of the "complex markup example" at the bottom. One of the thing that frustrates me about Markdown is that I'm not clever enough to extend it in a logical way. I'd really like to integrate a few class attributes without it turning into HAML or a giant bag of mess.

Complex markup

davideads's picture

The complex markup source should look exactly like the html in the source -- simple, semantic html. You just have to wrap the html inside a block level element like a div. TinyMCE will happily edit inside it.

Sign up for a test account on townsquare to see the source. I will put a demo, ready-only version up some time next week so people can play with it.

Neat!

fizk's picture

Thanks for making it available David!

Yonas Yanfa
TinymceSupport.com - Support, Consulting, and Development.

drupal_html_to_text

nickvidal's picture

Just want to point out that there is function in core that provides something similar:

http://api.drupal.org/api/drupal/includes!mail.inc/function/drupal_html_to_text/7

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: