Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ try {
})();

export const other = {
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
codeRemoveIndent: /^(?: {0,3}\t| {1,4})/gm,
outputLinkReplace: /\\([\[\]])/g,
indentCodeCompensation: /^(\s+)(?:```)/,
beginningSpace: /^\s+/,
Expand Down
14 changes: 14 additions & 0 deletions test/specs/new/tabs_indented_code.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<pre><code>foo baz bim
</code></pre>
<p>sep</p>
<pre><code>three spaces and a tab
</code></pre>
<p>sep</p>
<pre><code>lone tab
</code></pre>
<p>sep</p>
<pre><code>four spaces
</code></pre>
<p>sep</p>
<pre><code> five spaces
</code></pre>
20 changes: 20 additions & 0 deletions test/specs/new/tabs_indented_code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
renderExact: true
---
foo baz bim

sep

three spaces and a tab

sep

lone tab

sep

four spaces

sep

five spaces