Viper007Bond/syntaxhighlighter — pull request #20 by emhr (2013-06-07 22:04:31+00:00)
Title: Bugfix for Shortcode content gets injected with pre tags by tinymce

## Description:
Shortcodes get injected with pre tags by tinymce when block-level html is included.

## Steps to reproduce:
1. Create a post
2. In the text tab of tiny mce add a SH shortcode with an h1 (or any block-level tag) in it.
3. Save the post
4. After page reload, switch to the visual tab (to see the visual affect of injected pre tags)
5. Switch back to the text tab ( to see injected code )

_Example short code_
```[html]

This is an h1

[html]```

## Expected output:
The user should be able to switch tiny mce modes (text/visual) and the content should not have code injected at the very least.

## Actual Output:
Since SH passes unescaped html to the editor and wraps the shortcode in pre tags, tiny mce breaks up the shortcode in to segments injecting closing and opening pre tags to exclude the block level element from the pre content.