dcwatson / bbcode

A pure python bbcode parser and formatter.
BSD 2-Clause "Simplified" License
68 stars 17 forks source link

Option to use custom tag opener/closer on formatter level #18

Closed sh4nks closed 9 years ago

sh4nks commented 9 years ago

Hey! It would be cool if there would be an option to change the tag_opener and tag_closer on formatter level. Or instead of this, a regex that matches for example an emoji (like :smile: or :)). Sorry if this is already available but I couldn't find it.. just had a quick look on the source and in the docs this isn't mentioned.

Thanks!

dcwatson commented 9 years ago

I think this might be a little out of scope for a bbcode library. It's pretty easy to apply regex substitutions before or after formatting, and I'd rather not turn this into a general text transformation library. Thanks for the feedback, though!