I was trying to write some markdown code using markdown in github, but it always leads to some strange format, is there any idea about this issue?
For example: I wanna
# header1 #
but it always display as real header
header1
and it also happens to code block, i wanna
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
but I got
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
that is so confusing. Is there a good way to write it in markdown?