-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only code fences made from backticks cannot have other backticks in the same line. Fences with tildes can have both tildes and backticks. This allows the tilde case to work correctly. Also test for detection of these fences as they break or do not break paragraphs.
- Loading branch information
1 parent
a42413d
commit 63454d2
Showing
5 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p>A paragraph</p> | ||
<pre><code class="language-A">Here is code in | ||
backtick fences</code></pre> | ||
<p>B paragraph</p> | ||
<pre><code class="language-B">Here is code in | ||
tilde fences</code></pre> | ||
<p>C paragraph</p> | ||
<pre><code class="language-`C~">Alternative | ||
tilde fences</code></pre> | ||
<p>D paragraph ```~D` Invalid use of backtick fences</p> | ||
<pre><code> | ||
This will be read as | ||
part of a codeblock | ||
that ends with the file</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
A paragraph | ||
```A | ||
Here is code in | ||
backtick fences | ||
``` | ||
|
||
B paragraph | ||
~~~B | ||
Here is code in | ||
tilde fences | ||
~~~ | ||
|
||
C paragraph | ||
~~~`C~ | ||
Alternative | ||
tilde fences | ||
~~~ | ||
|
||
D paragraph | ||
```~D` | ||
Invalid use of | ||
backtick fences | ||
``` | ||
This will be read as | ||
part of a codeblock | ||
that ends with the file |