This tests ensures formatBlock removes a pre when formatting multiple paragraphs inside the pre. Formatting all paragraphs by h3 yields: | "\n" |
| "<#selection-anchor>hello\n\nworld\n\nwebkit<#selection-focus>\n" | "\n" Formatting all but the last paragraph by h3 yields: | "\n" ||| "<#selection-anchor>hello" | "\n" | "world" | "\n" | "<#selection-focus>webkit\n" | "\n" Undo yields: | "\n" |
| "<#selection-anchor>hello\n\nworld\n\n<#selection-focus>webkit\n" | "\n" Formatting all but the first paragraph by h3 yields: | "\n" || "hello\n" || "<#selection-anchor>\n" | "world" | "\n" | "webkit<#selection-focus>" | "\n"