-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Adjust List indentation to follow github syntax(Fixed to four spaces) #33
Comments
Sorry let me close this issue since it seems current implementation is intended. I still don't like the fact that Github issues interprets it in different way... |
I'm sorry let me re-open this as it is not consistent with the list with non-codeblock line sequences. And fenced codeblock also must prevent this from happening, if my understanding is correct. Markdown: 1. First ordered item requires 3 spaces
This is 4 spaces indented but has no space at front
2. Second ordered item requires 3 spaces
Another 4 spaces indented line
```default
I'm codeblock with 4 spaces indented.
Why do I have 1 space at the front?
Line with 3 spaces indentation within the codeblock
```
3. Placeholder item Github:
Jekyll Blog Example:
It's a surprise that codeblock under <ul>
<li>
<p>html</p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code> <span class="nt"><ol></span>
<span class="nt"><li></span>
<span class="nt"><p></span>First ordered item requires 3 spaces<span class="nt"></p></span>
<span class="nt"><p></span>This is 4 spaces indented but has no space at front<span class="nt"></p></span>
<span class="nt"></li></span>
<span class="nt"><li></span>
<span class="nt"><p></span>Second ordered item requires 3 spaces<span class="nt"></p></span>
<span class="nt"><p></span>Another 4 spaces indented line<span class="nt"></p></span>
<span class="nt"><pre><code</span> <span class="na">class=</span><span class="s">"language-default"</span><span class="nt">></span> I'm codeblock with 4 spaces indented.
Why do I have 1 space at the front?
Line with 3 spaces indentation within the codeblock
<span class="nt"></code></pre></span>
<span class="nt"></li></span>
<span class="nt"><li></span>
<span class="nt"><p></span>Placeholder item<span class="nt"></p></span>
<span class="nt"></li></span>
<span class="nt"></ol></span>
</code></pre><button><small class="icon-copy" title="Copy"></small><small class="icon-checkmark" title="Done"></small></button></div> </div>
</li>
</ul> |
According to the Kramdown Syntax for Lists
This means, if ordered list is (usually) used, list will take 3 spaces as the indentation for that list item.
for unordered list, it will be 2 spaces.
I'm wondering would it be possible for
GFM
(since it is default preprocessor for Jekyll - therefore github pages) to be matched with Github style? (consistent 4 spaces) Or at least provide option to it?So for example, below markdown will print proper codeblocks with NO SPACE at the start of the codeblock.
But for the Kramdown with GFM preprocessor, codeblocks WILL HAVE unintended spaces at the start of the codeblock
(and I'm delibrately using
1.
to show that they are from the same list)Markdown:
Github Example: No space at the start of the codeblock
First ordered item
Second ordered item
Third ordered item
First unordered item
Second unordered item
Third unordered item
Jekyll Blog Example:
Thank you.
The text was updated successfully, but these errors were encountered: