Skip to content

Commit

Permalink
Allow closing fence to be followed by tabs.
Browse files Browse the repository at this point in the history
Closes #258.
  • Loading branch information
jgm committed Jun 3, 2022
1 parent aded122 commit 4874cb4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var reATXHeadingMarker = /^#{1,6}(?:[ \t]+|$)/;

var reCodeFence = /^`{3,}(?!.*`)|^~{3,}/;

var reClosingCodeFence = /^(?:`{3,}|~{3,})(?= *$)/;
var reClosingCodeFence = /^(?:`{3,}|~{3,})(?=[ \t]*$)/;

var reSetextHeadingLine = /^(?:=+|-+)[ \t]*$/;

Expand Down
11 changes: 11 additions & 0 deletions test/regression.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,14 @@ https://talk.commonmark.org/t/link-label-collapse-all-internal-whitespace/3919/5
.
<p><a href="/url" title="title">foo</a></p>
````````````````````````````````

Issue #258

```````````````````````````````` example
```
abc
```
.
<pre><code>abc
</code></pre>
````````````````````````````````

0 comments on commit 4874cb4

Please sign in to comment.