netcarver/textile — Issue #49: Pre blocks with classes and nested code tag
Author: philwareham
Created: 2012-02-19 00:53:22+00:00
State: open

If a user creates a Textile `pre` block by typing `bc. blah blah blah` then it actually creates a `pre` block with a `code` tag nested within it - which is fine.

But if a user wants to put class attributes on the `pre` block those same classes are also appended to the nested `code` tag. That can play havoc with styling and I can't see a reason why it should inherit the classes at all.

For example:

bc(code pretty). here's some code

Creates:

here's some code

When it should really create:

here's some code