Markdown for WordPress and bbPress
Saving comments in markdown format (3 posts)

  1. forumcivico
    Posted 5 years ago #

    I love markdown, and I have the WordPress markdown-for-wordpress-and-bbpress parsing markdown in my posts and comments.

    However, I've noticed that WordPress saves the comments rendered in html format. This makes it more difficult to go back and edit comments.

    Maybe it's not builtin to wordpress. Comments normally not saved with any markup without the markdown plugin. Could be a markdown-for-wordpress-and-bbpress "feature" / accident?

    Partial Hack:

    It may also be theme-dependent.

    In wp-content/plugins/markdown-for-wordpress-and-bbpress/markdown.php comment out the pre_comment_content markdown filter

        remove_filter('comment_text', 'wpautop', 30);
        remove_filter('comment_text', 'make_clickable');
        #HACK don't save comments rendered in HTML
        #add_filter('pre_comment_content', 'Markdown', 6);
        add_filter('pre_comment_content', 'mdwp_hide_tags', 8);
        add_filter('pre_comment_content', 'mdwp_show_tags', 12);
        add_filter('get_comment_text',    'Markdown', 6);
        add_filter('get_comment_excerpt', 'Markdown', 6);
        add_filter('get_comment_excerpt', 'mdwp_strip_p', 7);


  2. Li-An
    Posted 4 years ago #

    OK, thanks for the tip... but I decided to use Markdown on Save extended for faster html rendering. So, as you noticed, there is no way for the moment to get comments in Markdown.

  3. drsim
    Posted 4 years ago #

    Any way i can convert the wordpress comments to bbpress topics?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Markdown for WordPress and bbPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic