Semi-fix for Firefox code Copy and Paste
The underlieing problem is that Firefox ignores the css 'white-space:pre' rule when actually copying and pasting. This Javascript turns newlines into <br /> tags inside the code containers. This will run in Safari, Opera, Chrome, Webkit, etc. gracefully. This will not run in IE due to IE not having the methods needed. A permanent solution would be at the Markdown level in such a way that the highlighter still runs on the output with brake tags.
Showing
想要评论请 注册 或 登录