From 43a075f86bfb85d4dd552f46e04d187779424e5d Mon Sep 17 00:00:00 2001
From: Yuki Izumi
Date: Thu, 18 May 2017 11:35:19 +1000
Subject: [PATCH 1/5] Bring latest spec in
---
test/fixtures/commonmark/spec.txt | 61 ++++++++++++++-----------------
1 file changed, 28 insertions(+), 33 deletions(-)
diff --git a/test/fixtures/commonmark/spec.txt b/test/fixtures/commonmark/spec.txt
index c66f93b..e556200 100644
--- a/test/fixtures/commonmark/spec.txt
+++ b/test/fixtures/commonmark/spec.txt
@@ -11,10 +11,12 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
## What is Markdown?
Markdown is a plain text format for writing structured documents,
-based on conventions used for indicating formatting in email and
-usenet posts. It was developed in 2004 by John Gruber, who wrote
-the first Markdown-to-HTML converter in Perl, and it soon became
-ubiquitous. In the next decade, dozens of implementations were
+based on conventions for indicating formatting in email
+and usenet posts. It was developed by John Gruber (with
+help from Aaron Swartz) and released in 2004 in the form of a
+[syntax description](http://daringfireball.net/projects/markdown/syntax)
+and a Perl script (`Markdown.pl`) for converting Markdown to
+HTML. In the next decade, dozens of implementations were
developed in many languages. Some extended the original
Markdown syntax with conventions for footnotes, tables, and
other document elements. Some allowed Markdown documents to be
@@ -312,7 +314,7 @@ form feed (`U+000C`), or carriage return (`U+000D`).
characters].
A [Unicode whitespace character](@) is
-any code point in the Unicode `Zs` class, or a tab (`U+0009`),
+any code point in the Unicode `Zs` general category, or a tab (`U+0009`),
carriage return (`U+000D`), newline (`U+000A`), or form feed
(`U+000C`).
@@ -331,7 +333,7 @@ is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
A [punctuation character](@) is an [ASCII
punctuation character] or anything in
-the Unicode classes `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
+the general Unicode categories `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
## Tabs
@@ -402,8 +404,8 @@ as indentation with four spaces would:
Normally the `>` that begins a block quote may be followed
optionally by a space, which is not considered part of the
content. In the following case `>` is followed by a tab,
-which is treated as if it were expanded into spaces.
-Since one of theses spaces is considered part of the
+which is treated as if it were expanded into three spaces.
+Since one of these spaces is considered part of the
delimiter, `foo` is considered to be indented six spaces
inside the block quote context, so we get an indented
code block starting with two spaces.
@@ -5936,7 +5938,7 @@ The following rules define emphasis and strong emphasis:
7. A double `**` [can close strong emphasis](@)
iff it is part of a [right-flanking delimiter run].
-8. A double `__` [can close strong emphasis]
+8. A double `__` [can close strong emphasis] iff
it is part of a [right-flanking delimiter run]
and either (a) not part of a [left-flanking delimiter run]
or (b) part of a [left-flanking delimiter run]
@@ -5976,8 +5978,8 @@ the following principles resolve ambiguity:
an interpretation `...` is always preferred to
`...`.
-14. An interpretation `...` is always
- preferred to `..`.
+14. An interpretation `...` is always
+ preferred to `..`.
15. When two potential emphasis or strong emphasis spans overlap,
so that the second begins before the first ends and ends after
@@ -7000,14 +7002,14 @@ Rule 14:
```````````````````````````````` example
***foo***
.
-foo
+foo
````````````````````````````````
```````````````````````````````` example
_____foo_____
.
-foo
+foo
````````````````````````````````
@@ -7148,8 +7150,7 @@ A [link destination](@) consists of either
- a nonempty sequence of characters that does not include
ASCII space or control characters, and includes parentheses
only if (a) they are backslash-escaped or (b) they are part of
- a balanced pair of unescaped parentheses that is not itself
- inside a balanced pair of unescaped parentheses.
+ a balanced pair of unescaped parentheses.
A [link title](@) consists of either
@@ -7255,35 +7256,29 @@ Parentheses inside the link destination may be escaped:
link
````````````````````````````````
-One level of balanced parentheses is allowed without escaping:
-
-```````````````````````````````` example
-[link]((foo)and(bar))
-.
-link
-````````````````````````````````
-
-However, if you have parentheses within parentheses, you need to escape
-or use the `<...>` form:
+Any number parentheses are allowed without escaping, as long as they are
+balanced:
```````````````````````````````` example
[link](foo(and(bar)))
.
-[link](foo(and(bar)))
+link
````````````````````````````````
+However, if you have unbalanced parentheses, you need to escape or use the
+`<...>` form:
```````````````````````````````` example
-[link](foo(and\(bar\)))
+[link](foo\(and\(bar\))
.
-link
+link
````````````````````````````````
```````````````````````````````` example
-[link]()
+[link]()
.
-link
+link
````````````````````````````````
@@ -8326,11 +8321,11 @@ The link labels are case-insensitive:
````````````````````````````````
-If you just want bracketed text, you can backslash-escape the
-opening `!` and `[`:
+If you just want a literal `!` followed by bracketed text, you can
+backslash-escape the opening `[`:
```````````````````````````````` example
-\!\[foo]
+!\[foo]
[foo]: /url "title"
.
From f446f6d42a2c9036d953e1f828ae1130c303a6be Mon Sep 17 00:00:00 2001
From: Yuki Izumi
Date: Thu, 18 May 2017 11:35:24 +1000
Subject: [PATCH 2/5] Fix delimiter nesting in render
---
lib/rules_inline/emphasis.js | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/rules_inline/emphasis.js b/lib/rules_inline/emphasis.js
index 31bfbdd..4447ce7 100644
--- a/lib/rules_inline/emphasis.js
+++ b/lib/rules_inline/emphasis.js
@@ -77,7 +77,7 @@ module.exports.postProcess = function emphasis(state) {
delimiters = state.delimiters,
max = state.delimiters.length;
- for (i = 0; i < max; i++) {
+ for (i = max - 1; i >= 0; i--) {
startDelim = delimiters[i];
if (startDelim.marker !== 0x5F/* _ */ && startDelim.marker !== 0x2A/* * */) {
@@ -96,11 +96,11 @@ module.exports.postProcess = function emphasis(state) {
//
// `whatever` -> `whatever`
//
- isStrong = i + 1 < max &&
- delimiters[i + 1].end === startDelim.end - 1 &&
- delimiters[i + 1].token === startDelim.token + 1 &&
- delimiters[startDelim.end - 1].token === endDelim.token - 1 &&
- delimiters[i + 1].marker === startDelim.marker;
+ isStrong = i - 1 >= 0 &&
+ delimiters[i - 1].end === startDelim.end + 1 &&
+ delimiters[i - 1].token === startDelim.token - 1 &&
+ delimiters[startDelim.end + 1].token === endDelim.token + 1 &&
+ delimiters[i - 1].marker === startDelim.marker;
ch = String.fromCharCode(startDelim.marker);
@@ -119,9 +119,9 @@ module.exports.postProcess = function emphasis(state) {
token.content = '';
if (isStrong) {
- state.tokens[delimiters[i + 1].token].content = '';
- state.tokens[delimiters[startDelim.end - 1].token].content = '';
- i++;
+ state.tokens[delimiters[i - 1].token].content = '';
+ state.tokens[delimiters[startDelim.end + 1].token].content = '';
+ i--;
}
}
};
From 7de3342ab1333ff2842dbb56169d770e46fa5086 Mon Sep 17 00:00:00 2001
From: Yuki Izumi
Date: Thu, 18 May 2017 11:38:11 +1000
Subject: [PATCH 3/5] Allow arbitrary nesting of parentheses
---
lib/helpers/parse_link_destination.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/helpers/parse_link_destination.js b/lib/helpers/parse_link_destination.js
index e9d575d..a2497bd 100644
--- a/lib/helpers/parse_link_destination.js
+++ b/lib/helpers/parse_link_destination.js
@@ -59,7 +59,6 @@ module.exports = function parseLinkDestination(str, pos, max) {
if (code === 0x28 /* ( */) {
level++;
- if (level > 1) { break; }
}
if (code === 0x29 /* ) */) {
From 06967950442d2fd4cfbb6f6302f5cb2d0d892ee0 Mon Sep 17 00:00:00 2001
From: Yuki Izumi
Date: Thu, 18 May 2017 16:03:39 +1000
Subject: [PATCH 4/5] make specsplit
---
test/fixtures/commonmark/good.txt | 1267 ++++++++++++++---------------
1 file changed, 629 insertions(+), 638 deletions(-)
diff --git a/test/fixtures/commonmark/good.txt b/test/fixtures/commonmark/good.txt
index 4b1766d..f458a91 100644
--- a/test/fixtures/commonmark/good.txt
+++ b/test/fixtures/commonmark/good.txt
@@ -1,5 +1,5 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 347
+src line: 349
.
foo baz bim
@@ -9,7 +9,7 @@ src line: 347
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 354
+src line: 356
.
foo baz bim
@@ -19,7 +19,7 @@ src line: 354
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 361
+src line: 363
.
a a
@@ -31,7 +31,7 @@ src line: 361
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 374
+src line: 376
.
- foo
@@ -47,7 +47,7 @@ src line: 374
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 387
+src line: 389
.
- foo
@@ -64,7 +64,7 @@ src line: 387
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 410
+src line: 412
.
> foo
@@ -76,7 +76,7 @@ src line: 410
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 419
+src line: 421
.
- foo
@@ -90,7 +90,7 @@ src line: 419
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 431
+src line: 433
.
foo
@@ -102,7 +102,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 440
+src line: 442
.
- foo
@@ -123,7 +123,7 @@ src line: 440
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 458
+src line: 460
.
# Foo
@@ -132,7 +132,7 @@ src line: 458
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 464
+src line: 466
.
* * *
@@ -141,7 +141,7 @@ src line: 464
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 491
+src line: 493
.
- `one
@@ -154,7 +154,7 @@ src line: 491
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 530
+src line: 532
.
***
@@ -167,7 +167,7 @@ ___
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 543
+src line: 545
.
+++
@@ -176,7 +176,7 @@ src line: 543
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 550
+src line: 552
.
===
@@ -185,7 +185,7 @@ src line: 550
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 559
+src line: 561
.
--
@@ -198,7 +198,7 @@ __
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 572
+src line: 574
.
***
@@ -211,7 +211,7 @@ src line: 572
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 585
+src line: 587
.
***
@@ -221,7 +221,7 @@ src line: 585
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 593
+src line: 595
.
Foo
@@ -232,7 +232,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 604
+src line: 606
.
_____________________________________
@@ -241,7 +241,7 @@ _____________________________________
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 613
+src line: 615
.
- - -
@@ -250,7 +250,7 @@ src line: 613
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 620
+src line: 622
.
** * ** * ** * **
@@ -259,7 +259,7 @@ src line: 620
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 627
+src line: 629
.
- - - -
@@ -268,7 +268,7 @@ src line: 627
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 636
+src line: 638
.
- - - -
@@ -277,7 +277,7 @@ src line: 636
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 645
+src line: 647
.
_ _ _ _ a
@@ -292,7 +292,7 @@ a------
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 661
+src line: 663
.
*-*
@@ -301,7 +301,7 @@ src line: 661
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 670
+src line: 672
.
- foo
@@ -318,7 +318,7 @@ src line: 670
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 687
+src line: 689
.
Foo
@@ -331,7 +331,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 704
+src line: 706
.
Foo
@@ -343,7 +343,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 717
+src line: 719
.
* Foo
@@ -360,7 +360,7 @@ src line: 717
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 734
+src line: 736
.
- Foo
@@ -375,7 +375,7 @@ src line: 734
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 763
+src line: 765
.
# foo
@@ -394,7 +394,7 @@ src line: 763
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 782
+src line: 784
.
####### foo
@@ -403,7 +403,7 @@ src line: 782
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 797
+src line: 799
.
#5 bolt
@@ -415,7 +415,7 @@ src line: 797
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 809
+src line: 811
.
\## foo
@@ -424,7 +424,7 @@ src line: 809
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 818
+src line: 820
.
# foo *bar* \*baz\*
@@ -433,7 +433,7 @@ src line: 818
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 827
+src line: 829
.
# foo
@@ -442,7 +442,7 @@ src line: 827
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 836
+src line: 838
.
### foo
@@ -455,7 +455,7 @@ src line: 836
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 849
+src line: 851
.
# foo
@@ -465,7 +465,7 @@ src line: 849
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 857
+src line: 859
.
foo
@@ -476,7 +476,7 @@ foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 868
+src line: 870
.
## foo ##
@@ -487,7 +487,7 @@ src line: 868
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 879
+src line: 881
.
# foo ##################################
@@ -498,7 +498,7 @@ src line: 879
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 890
+src line: 892
.
### foo ###
@@ -507,7 +507,7 @@ src line: 890
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 901
+src line: 903
.
### foo ### b
@@ -516,7 +516,7 @@ src line: 901
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 910
+src line: 912
.
# foo#
@@ -525,7 +525,7 @@ src line: 910
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 920
+src line: 922
.
### foo \###
@@ -538,7 +538,7 @@ src line: 920
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 934
+src line: 936
.
****
@@ -551,7 +551,7 @@ src line: 934
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 945
+src line: 947
.
Foo bar
@@ -564,7 +564,7 @@ Bar foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 958
+src line: 960
.
##
@@ -577,7 +577,7 @@ src line: 958
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1001
+src line: 1003
.
Foo *bar*
@@ -591,7 +591,7 @@ Foo *bar*
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1015
+src line: 1017
.
Foo *bar
@@ -603,7 +603,7 @@ baz
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1027
+src line: 1029
.
Foo
@@ -617,7 +617,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1042
+src line: 1044
.
Foo
@@ -635,7 +635,7 @@ src line: 1042
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1060
+src line: 1062
.
Foo
@@ -653,7 +653,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1079
+src line: 1081
.
Foo
@@ -663,7 +663,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1089
+src line: 1091
.
Foo
@@ -674,7 +674,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1100
+src line: 1102
.
Foo
@@ -690,7 +690,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1116
+src line: 1118
.
Foo
@@ -700,7 +700,7 @@ Foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1126
+src line: 1128
.
Foo\
@@ -710,7 +710,7 @@ Foo\
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1137
+src line: 1139
.
`Foo
@@ -728,7 +728,7 @@ of dashes"/>
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1156
+src line: 1158
.
> Foo
@@ -741,7 +741,7 @@ src line: 1156
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1167
+src line: 1169
.
> foo
@@ -756,7 +756,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1180
+src line: 1182
.
- Foo
@@ -769,7 +769,7 @@ src line: 1180
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1195
+src line: 1197
.
Foo
@@ -781,7 +781,7 @@ Bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1208
+src line: 1210
.
---
@@ -798,7 +798,7 @@ Baz
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1225
+src line: 1227
.
@@ -808,7 +808,7 @@ src line: 1225
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1237
+src line: 1239
.
---
@@ -819,7 +819,7 @@ src line: 1237
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1246
+src line: 1248
.
- foo
@@ -832,7 +832,7 @@ src line: 1246
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1257
+src line: 1259
.
foo
@@ -844,7 +844,7 @@ src line: 1257
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1267
+src line: 1269
.
> foo
@@ -857,7 +857,7 @@ src line: 1267
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1281
+src line: 1283
.
\> foo
@@ -867,7 +867,7 @@ src line: 1281
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1312
+src line: 1314
.
Foo
@@ -882,7 +882,7 @@ baz
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1328
+src line: 1330
.
Foo
@@ -899,7 +899,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1346
+src line: 1348
.
Foo
@@ -914,7 +914,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1361
+src line: 1363
.
Foo
@@ -929,7 +929,7 @@ baz
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1389
+src line: 1391
.
a simple
@@ -941,7 +941,7 @@ src line: 1389
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1403
+src line: 1405
.
- foo
@@ -957,7 +957,7 @@ src line: 1403
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1417
+src line: 1419
.
1. foo
@@ -975,7 +975,7 @@ src line: 1417
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1437
+src line: 1439
.
@@ -991,7 +991,7 @@ src line: 1437
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1453
+src line: 1455
.
chunk1
@@ -1013,7 +1013,7 @@ chunk3
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1476
+src line: 1478
.
chunk1
@@ -1027,7 +1027,7 @@ src line: 1476
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1491
+src line: 1493
.
Foo
@@ -1039,7 +1039,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1505
+src line: 1507
.
foo
@@ -1051,7 +1051,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1518
+src line: 1520
.
# Heading
@@ -1071,7 +1071,7 @@ Heading
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1538
+src line: 1540
.
foo
@@ -1083,7 +1083,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1551
+src line: 1553
.
@@ -1097,7 +1097,7 @@ src line: 1551
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1565
+src line: 1567
.
foo
@@ -1107,7 +1107,7 @@ src line: 1565
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1620
+src line: 1622
.
```
@@ -1121,7 +1121,7 @@ src line: 1620
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1634
+src line: 1636
.
~~~
@@ -1135,7 +1135,7 @@ src line: 1634
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1649
+src line: 1651
.
```
@@ -1149,7 +1149,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1661
+src line: 1663
.
~~~
@@ -1163,7 +1163,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1675
+src line: 1677
.
````
@@ -1177,7 +1177,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1687
+src line: 1689
.
~~~~
@@ -1191,7 +1191,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1702
+src line: 1704
.
```
@@ -1200,7 +1200,7 @@ src line: 1702
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1709
+src line: 1711
.
`````
@@ -1215,7 +1215,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1722
+src line: 1724
.
> ```
@@ -1231,7 +1231,7 @@ bbb
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1738
+src line: 1740
.
```
@@ -1245,7 +1245,7 @@ src line: 1738
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1752
+src line: 1754
.
```
@@ -1255,7 +1255,7 @@ src line: 1752
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1764
+src line: 1766
.
```
@@ -1269,7 +1269,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1776
+src line: 1778
.
```
@@ -1285,7 +1285,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1790
+src line: 1792
.
```
@@ -1301,7 +1301,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1806
+src line: 1808
.
```
@@ -1315,7 +1315,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1821
+src line: 1823
.
```
@@ -1327,7 +1327,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1831
+src line: 1833
.
```
@@ -1339,7 +1339,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1843
+src line: 1845
.
```
@@ -1352,7 +1352,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1857
+src line: 1859
.
``` ```
@@ -1363,7 +1363,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1866
+src line: 1868
.
~~~~~~
@@ -1376,7 +1376,7 @@ aaa
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1880
+src line: 1882
.
foo
@@ -1392,7 +1392,7 @@ baz
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1897
+src line: 1899
.
foo
@@ -1409,7 +1409,7 @@ bar
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1917
+src line: 1919
.
```ruby
@@ -1425,7 +1425,7 @@ end
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1931
+src line: 1933
.
~~~~ ruby startline=3 $%@#$
@@ -1441,7 +1441,7 @@ end
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1945
+src line: 1947
.
````;
@@ -1451,7 +1451,7 @@ src line: 1945
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1955
+src line: 1957
.
``` aa ```
@@ -1462,7 +1462,7 @@ foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1966
+src line: 1968
.
```
@@ -1474,7 +1474,7 @@ src line: 1966
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2041
+src line: 2043
.
@@ -1498,7 +1498,7 @@ okay.
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2063
+src line: 2065
.
@@ -1511,7 +1511,7 @@ src line: 2063
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2076
+src line: 2078
.
@@ -1522,7 +1522,7 @@ src line: 2076
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2087
+src line: 2089
.
@@ -1537,7 +1537,7 @@ src line: 2087
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2103
+src line: 2105
.
@@ -1619,7 +1619,7 @@ src line: 2175
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2182
+src line: 2184
.
@@ -1632,7 +1632,7 @@ foo
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2199
+src line: 2201
.
@@ -1647,7 +1647,7 @@ int x = 33;
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2216
+src line: 2218
.
@@ -1660,7 +1660,7 @@ src line: 2216
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2229
+src line: 2231
.
@@ -1673,7 +1673,7 @@ src line: 2229
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2240
+src line: 2242
.
@@ -1686,7 +1686,7 @@ src line: 2240
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2251
+src line: 2253
.
@@ -1697,7 +1697,7 @@ src line: 2251
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2266
+src line: 2268
.
@@ -1710,7 +1710,7 @@ src line: 2266
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2281
+src line: 2283
.
@@ -1725,7 +1725,7 @@ src line: 2281
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2299
+src line: 2301
.
*foo*
@@ -1734,7 +1734,7 @@ src line: 2299
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2315
+src line: 2317
.
@@ -1755,7 +1755,7 @@ main = print $ parseTags tags
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2336
+src line: 2338
.
|