stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

bbpress errors depending on forum role #52

Closed jvcasillas closed 10 years ago

jvcasillas commented 10 years ago

When I, as an administrator, post to my bbpress forum I am able to use all of the functions of the WP-markdown plugin without problems; however, if I any other users, including moderators, use markdown in their post it does not work. Specifically, all text is wrapped in <p> </p> tags, and headers (#) produce <h3> tags.

stephenharris commented 10 years ago

Hi, this isn't an issue with WP-Markdown (which ignores the user completely). bbPress has, by default, much more strict whitelist of allowed HTML tags, and escapes the rest.

See this gist on how to change which tags are allowed. Please note that that gist does not explicitly allow header tags, so you'll want to add those.