Using Redcarpet, when I include something like the following in my markdown, it does not respect any line breaks or indentation. I tried two spaces at the end of the lines. Extra lines between code. Nothing seems to work.
```xml
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<money>3</money>
</hash>
```
I see:
<?xml version="1.0" encoding="UTF-8"?> <hash> <money>3</money> </hash>
Here are the settings for Redcarpet:
Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true, :fenced_code_blocks => true, :no_intra_emphasis => true, :lax_html_blocks => true)
What do I need to do so that the lines are broken correctly and keep the indentation, as here, or on GitHub?
Refresh . And the source looks like this:
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<hash>
<money>3</money>
</hash>
</code></pre>
source
share