Adding Extra Paragraph Tags, strange editing (4 posts)

  1. chriscoyier
    Posted 2 years ago #


    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



  2. chriscoyier
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Markdown
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic