automatically add paragraphs

Apr 14, 2011 at 5:15 AM


Is there any option to automatically wrap blocks of text in paragraph tags? This would be very useful. Or is there any other way to accomplish this?

May 23, 2011 at 2:56 PM

This is not built-in but you can ask the library to parse the bbcode into an in-memory AST and do the conversion to html yourself (look at the source code to see how this is done). You could also modify the AST by changing all TextNode's to TagNode's of a special BBTag that just wraps its contents in a p-tag.