jbowens / jBBCode

A lightweight but extensible BBCode parser
http://jbbcode.com
MIT License
164 stars 32 forks source link

wrong parse on code and blockquote #64

Open mariantatarau opened 8 years ago

mariantatarau commented 8 years ago

Seems that italic, bold is parsed on [code], can be excluded somehow ?

shmax commented 8 years ago

I don't follow. How about a code sample?

Art4 commented 8 years ago

Config your CodeDefinition to not parsing the content.

Example:

$builder = new CodeDefinitionBuilder('code', '<code>{param}</code>');
$builder->setParseContent(false);
$definitions[] = $builder->build();