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.

[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.

Topic code markdown editor Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.