waylan/Python-Markdown — Issue #58: allow a subset of markdown
Author: bigblind
Created: 2011-12-06 20:53:11+00:00
State: open

While it's nice to have safe mode, as a website owner, you sometimes want to limit the abilities of users even more. For example, on blog articles posted by users, you want all the markdown options, but in comments, you only want links, **bold** and _italic_ text, and inline code snippets. A way to do that would be nice.

What I propose, is that you can use the markdown function like this:

markdown("**bold** and _italic_",allowed_tags=['b','a','i','u'],safe_mode='escape')