I'm using jekyll which in turn uses kramdown to convert markdown into html and I can't get the following example to render correctly: I used \t
to show a tab, \s
to show a space
*\tHere is some code in a list:
\t```python
\tdef bar():
\t\treturn 4;
```
and it should render like
- Here is some code in a list:
def bar(): \treturn 4;
however i end up with
- Here is some code in a list:
def bar(): \s\s\s\sreturn 4;
The issue here for me is that I'd like to use the css attribute tab-size
to configure the width of the tabs but this obviously doesn't work for spaces.
I'm assuming this is to do with kramdown's assumption that tabs are 4 spaces wide?
I've also tried to indent the heading of the list with various amounts of tabs as Embed a code block in a list item with proper indentation in kramdown suggests, but without any luck.
Is there some option to forbid kramdown replacing tabs with spaces? Or some other way to stop it from doing this?