-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Indented code blocks #90
Comments
I don't think indented code blocks are well supported with the theme. They render inline and wrap line breaks. I'd suggest using either fenced code blocks or Jekyll's highlight tag instead. Personally I always use the |
Fenced code blocks don't work either. Also, indentation doesn't work with the highlight tag. Please advise. Could indented code blocks be a feature of redcarpet, not supported by kramdown? Does your theme work with redcarpet? Thanks for your help, very much appreciated. |
The problem is the markup and CSS. If you look at the HTML it's rendering a p code, li code {
white-space: pre; // change from nowrap The preferred way is to use the highlight tag built into Jekyll since it wraps code blocks in a |
Thanks, will try. Where would I make this change? |
Here. |
Works, after I changed to redcarpet instead of kramdown. CSS needed further tweaks, see 9a6f67b5061a in my repo. I wonder if these CSS I had to remove are necessary at all even in your unmodified version. (EDIT: Yes they are.) redcarpet styles code blocks as Thanks again for your help. |
Found it: a237558ae3a3 in my repo, but I wonder if this works well with the basic kramdown setup. |
- Include indented code block example - Improve `{% highlight linenos %}` styling - Close mmistakes#90, close mmistakes#92
I'm having trouble to render indented code blocks properly with your theme:
Install
makeR
in your package, use it to add awercker.yml
:...
See http://krlmlr.github.io/, today's post. (Private repo, sorry...)
What am I doing wrong? Thanks.
The text was updated successfully, but these errors were encountered: