WordPress editor removes all the linefeed characters with WP-Markdown and Syntax Highlighter evolved

I have WP-Markdown and SyntaxHighlighter Evolved wordpress plugins installed.

The issue is that when I write the code, and click the “Update” button, I have the code reformatted.

Read More
[ruby] 
class Foo < Bar 
    def hello 
        puts "Hello World!" 
    end 
end 
[/ruby]

This is the modified code.

[ruby] class Foo < Bar def hello puts "Hello World!" end end [/ruby]

There is no change without the [ruby] tag.

class Foo < Bar 
    def hello puts "Hello World!" 
    end 
end

How can I prevent the code modification? I tried following actions to get the same results.

Related posts