Indenting seems off around code blocks
Closed this issue · 3 comments
drewish commented
Input:
If you don't already have a <code>php.ini</code> file you'll need to create one by copying the default:
<code>
sh-3.2# if ( ! test -e /private/etc/php.ini ) ; then cp /private/etc/php.ini.default /private/etc/php.ini; fi
</code>
Restart Apache:
Output:
If you don't already have a `php.ini` file you'll need to create one by copying the default: `sh-3.2# if ( ! test -e /private/etc/php.ini ) ; then cp /private/etc/php.ini.default /private/etc/php.ini; fi` Restart Apache: `sh-3.2# apachectl restart`
Expected either:
If you don't already have a `php.ini` file you'll need to create one by copying the default:
sh-3.2# if ( ! test -e /private/etc/php.ini ) ; then cp /private/etc/php.ini.default /private/etc/php.ini; fi
Restart Apache:
sh-3.2# apachectl restart
or one using GitHub style comment blocks that I can't seem to figure out how to format using markdown.
xijo commented
Hi drewish,
in your examples you're using the code tag as inline element. I'd recommend to use a pre
tag around code blocks, see http://www.w3schools.com/tags/tag_pre.asp
You can enable github style code blocks as well by using:
ReverseMarkdown.parse_string(input, github_style_code_blocks: true)
drewish commented
Ah, you're right. The markup I'm passing in was from a system that would convert newlines into br and p tags. I'll probably need to do some more manipulation before passing it in.
xijo commented
Nevermind and good luck! :)