mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
bf1b1e976b
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. |
||
---|---|---|
.. | ||
files | ||
images | ||
rails_guides | ||
source | ||
rails_guides.rb |