WordPress.org

Ready to get started?Download WordPress

Forums

WP-Markdown
Adding Extra Paragraph Tags, strange editing (4 posts)

  1. chriscoyier
    Member
    Posted 9 months ago #

    Hello!

    I love this plugin. Works great for the comments on my site.

    I've recently started using bbPress though, and have enabled WP-Markdown for forums/topics/replies. What I get when saving is pretty weird. There are literally <p> tags being saved, and then those literally display when the reply is posted. Editing the post gets you pretty weird stuff as well, which alters the content when re-saved. Ideally, what a user writes is displayed again exactly how they originally wrote it, and the weird P tag thing doesn't happen.

    Here's a little screencast showing the issues: http://www.screenr.com/EtCH

    -Chris

    http://wordpress.org/plugins/wp-markdown/

  2. chriscoyier
    Member
    Posted 9 months ago #

    I should mention that in testing the problem, it's best to test as NOT a Super Admin user. They have the ability to "post unrestricted HTML content" that normal forum users don't have.

  3. Stephen Harris
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Chris,

    I encountered this problem when I updated bbPress (can't remember which version). bbPress has its own kses filter, which restricts the HTML tags allowed, and is a lot stricter than those for ordinary posts. I've posted the solution I use: https://gist.github.com/stephenharris/6078242

  4. chriscoyier
    Member
    Posted 9 months ago #

    Hey Stephen,

    Thanks for the help!

    I tried putting this at the bottom of my bbpress-functions.php file, but unfortunately no luck yet. Was that the right place to put it?

    In testing, I'm using a regular WordPress installed with **only** bbPress and WP-Markdown enabled as plugins. WP-Markdown is set to be on for all bbPress stuff. I'm also testing as a "regular" forums user, not an admin, which have different HTML posting permissions.

    Markdown works, but paragraphs are getting wrapped in that <p> tag which ultimately displays.

    Here's a screencast showing what's going on: http://www.screenr.com/s6CH

    -Chris

Reply

You must log in to post.

About this Plugin

About this Topic