From 798b452a8e9b741e93930e4778b623758e08c1eb Mon Sep 17 00:00:00 2001
From: tatsy <tatsy.mail@gmail.com>
Date: Sun, 5 Jul 2015 17:54:58 +0900
Subject: [PATCH] Update dependencies.

---
 .travis.yml                       |    5 +-
 Makefile                          |    2 +-
 package.json                      |   18 +-
 test/fixtures/commonmark/good.txt | 1219 ++++++++++++++++-------------
 test/fixtures/commonmark/spec.txt |  323 ++++++--
 5 files changed, 923 insertions(+), 644 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 19ae283..fac47d2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,11 @@
 language: node_js
 node_js:
   - '0.10'
-script:
+  - '0.11'
+  - '0.12'
+after_success:
   - make test-ci
+sudo: false
 deploy:
   provider: npm
   email: tatsy.mail@gmail.com
diff --git a/Makefile b/Makefile
index 7451fbd..220d04a 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ publish:
 	uglifyjs dist/markdown-it-imsize.js > dist/markdown-it-imsize.min.js
 	bower register markdown-it-imsize https://github.com/tatsy/markdown-it-imsize.git
 
-test: lint
+test:
 	mocha
 
 test-ci:
diff --git a/package.json b/package.json
index 8b68adb..e7c0952 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "markdown-it-imsize",
-  "version": "2.0.0",
+  "version": "2.0.1",
   "description": "Markdown-it plugin to specify image size",
   "main": "lib/index.js",
   "scripts": {
@@ -22,16 +22,16 @@
   ],
   "dependencies": {},
   "devDependencies": {
-    "chai": "^2.2.0",
+    "chai": "^3.0.0",
     "coveralls": "^2.11.2",
-    "eslint": "^0.18.0",
+    "eslint": "^0.24.0",
     "eslint-plugin-nodeca": "^1.0.3",
-    "istanbul": "^0.3.13",
-    "markdown-it": "^4.1.0",
+    "istanbul": "^0.3.17",
+    "markdown-it": "^4.3.0",
     "markdown-it-testgen": "^0.1.4",
-    "mocha": "^2.2.1",
-    "should": "^5.2.0",
-    "uglify-js": "^2.4.19",
-    "webpack": "^1.7.3"
+    "mocha": "^2.2.5",
+    "should": "^7.0.1",
+    "uglify-js": "^2.4.23",
+    "webpack": "^1.10.1"
   }
 }
diff --git a/test/fixtures/commonmark/good.txt b/test/fixtures/commonmark/good.txt
index c4f1fae..641b09e 100644
--- a/test/fixtures/commonmark/good.txt
+++ b/test/fixtures/commonmark/good.txt
@@ -21,7 +21,7 @@ src line: 264
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 288
+src line: 293
 
 .
 - `one
@@ -34,7 +34,7 @@ src line: 288
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 326
+src line: 331
 
 .
 ***
@@ -47,7 +47,7 @@ ___
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 338
+src line: 343
 
 .
 +++
@@ -56,7 +56,7 @@ src line: 338
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 344
+src line: 349
 
 .
 ===
@@ -65,7 +65,7 @@ src line: 344
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 352
+src line: 357
 
 .
 --
@@ -78,7 +78,7 @@ __</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 364
+src line: 369
 
 .
  ***
@@ -91,7 +91,7 @@ src line: 364
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 376
+src line: 381
 
 .
     ***
@@ -101,7 +101,7 @@ src line: 376
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 383
+src line: 388
 
 .
 Foo
@@ -112,7 +112,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 393
+src line: 398
 
 .
 _____________________________________
@@ -121,7 +121,7 @@ _____________________________________
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 401
+src line: 406
 
 .
  - - -
@@ -130,7 +130,7 @@ src line: 401
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 407
+src line: 412
 
 .
  **  * ** * ** * **
@@ -139,7 +139,7 @@ src line: 407
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 413
+src line: 418
 
 .
 -     -      -      -
@@ -148,7 +148,7 @@ src line: 413
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 421
+src line: 426
 
 .
 - - - -    
@@ -157,7 +157,7 @@ src line: 421
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 429
+src line: 434
 
 .
 _ _ _ _ a
@@ -172,7 +172,7 @@ a------
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 444
+src line: 449
 
 .
  *-*
@@ -181,7 +181,7 @@ src line: 444
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 452
+src line: 457
 
 .
 - foo
@@ -198,7 +198,7 @@ src line: 452
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 468
+src line: 473
 
 .
 Foo
@@ -211,7 +211,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 484
+src line: 489
 
 .
 Foo
@@ -223,7 +223,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 496
+src line: 501
 
 .
 * Foo
@@ -240,7 +240,7 @@ src line: 496
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 512
+src line: 517
 
 .
 - Foo
@@ -255,7 +255,7 @@ src line: 512
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 540
+src line: 545
 
 .
 # foo
@@ -274,7 +274,7 @@ src line: 540
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 558
+src line: 563
 
 .
 ####### foo
@@ -283,16 +283,19 @@ src line: 558
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 570
+src line: 577
 
 .
 #5 bolt
+
+#foobar
 .
 <p>#5 bolt</p>
+<p>#foobar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 578
+src line: 588
 
 .
 \## foo
@@ -301,7 +304,7 @@ src line: 578
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 586
+src line: 596
 
 .
 # foo *bar* \*baz\*
@@ -310,7 +313,7 @@ src line: 586
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 594
+src line: 604
 
 .
 #                  foo                     
@@ -319,7 +322,7 @@ src line: 594
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 602
+src line: 612
 
 .
  ### foo
@@ -332,7 +335,7 @@ src line: 602
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 614
+src line: 624
 
 .
     # foo
@@ -342,7 +345,7 @@ src line: 614
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 621
+src line: 631
 
 .
 foo
@@ -353,7 +356,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 631
+src line: 641
 
 .
 ## foo ##
@@ -364,7 +367,7 @@ src line: 631
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 641
+src line: 651
 
 .
 # foo ##################################
@@ -375,7 +378,7 @@ src line: 641
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 651
+src line: 661
 
 .
 ### foo ###     
@@ -384,7 +387,7 @@ src line: 651
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 662
+src line: 672
 
 .
 ### foo ### b
@@ -393,7 +396,7 @@ src line: 662
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 670
+src line: 680
 
 .
 # foo#
@@ -402,7 +405,7 @@ src line: 670
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 679
+src line: 689
 
 .
 ### foo \###
@@ -415,7 +418,7 @@ src line: 679
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 692
+src line: 702
 
 .
 ****
@@ -428,7 +431,7 @@ src line: 692
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 702
+src line: 712
 
 .
 Foo bar
@@ -441,7 +444,7 @@ Bar foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 714
+src line: 724
 
 .
 ## 
@@ -454,7 +457,7 @@ src line: 714
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 754
+src line: 765
 
 .
 Foo *bar*
@@ -468,7 +471,7 @@ Foo *bar*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 767
+src line: 778
 
 .
 Foo
@@ -482,7 +485,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 781
+src line: 792
 
 .
    Foo
@@ -500,7 +503,7 @@ src line: 781
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 798
+src line: 809
 
 .
     Foo
@@ -518,7 +521,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 816
+src line: 827
 
 .
 Foo
@@ -528,7 +531,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 825
+src line: 836
 
 .
 Foo
@@ -539,7 +542,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 835
+src line: 846
 
 .
 Foo
@@ -555,7 +558,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 850
+src line: 861
 
 .
 Foo  
@@ -565,7 +568,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 859
+src line: 870
 
 .
 Foo\
@@ -575,7 +578,7 @@ Foo\
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 869
+src line: 880
 
 .
 `Foo
@@ -593,7 +596,7 @@ of dashes"/>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 887
+src line: 898
 
 .
 > Foo
@@ -606,7 +609,7 @@ src line: 887
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 897
+src line: 908
 
 .
 - Foo
@@ -619,7 +622,7 @@ src line: 897
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 909
+src line: 920
 
 .
 Foo
@@ -639,7 +642,7 @@ Bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 928
+src line: 939
 
 .
 ---
@@ -656,7 +659,7 @@ Baz
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 944
+src line: 955
 
 .
 
@@ -666,7 +669,7 @@ src line: 944
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 955
+src line: 966
 
 .
 ---
@@ -677,7 +680,7 @@ src line: 955
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 963
+src line: 974
 
 .
 - foo
@@ -690,7 +693,7 @@ src line: 963
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 973
+src line: 984
 
 .
     foo
@@ -702,7 +705,7 @@ src line: 973
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 982
+src line: 993
 
 .
 > foo
@@ -715,7 +718,7 @@ src line: 982
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 995
+src line: 1006
 
 .
 \> foo
@@ -725,7 +728,7 @@ src line: 995
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1017
+src line: 1028
 
 .
     a simple
@@ -737,7 +740,41 @@ src line: 1017
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1028
+src line: 1041
+
+.
+  - foo
+
+    bar
+.
+<ul>
+<li>
+<p>foo</p>
+<p>bar</p>
+</li>
+</ul>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 1054
+
+.
+1.  foo
+
+    - bar
+.
+<ol>
+<li>
+<p>foo</p>
+<ul>
+<li>bar</li>
+</ul>
+</li>
+</ol>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 1073
 
 .
     <a/>
@@ -753,7 +790,7 @@ src line: 1028
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1043
+src line: 1088
 
 .
     chunk1
@@ -775,7 +812,7 @@ chunk3
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1065
+src line: 1110
 
 .
     chunk1
@@ -789,7 +826,7 @@ src line: 1065
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1079
+src line: 1124
 
 .
 Foo
@@ -801,7 +838,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1092
+src line: 1137
 
 .
     foo
@@ -813,7 +850,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1104
+src line: 1149
 
 .
 # Header
@@ -833,7 +870,7 @@ Header
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1123
+src line: 1168
 
 .
         foo
@@ -845,7 +882,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1135
+src line: 1180
 
 .
 
@@ -859,7 +896,7 @@ src line: 1135
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1148
+src line: 1193
 
 .
     foo  
@@ -869,7 +906,7 @@ src line: 1148
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1202
+src line: 1247
 
 .
 ```
@@ -883,7 +920,7 @@ src line: 1202
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1215
+src line: 1260
 
 .
 ~~~
@@ -897,7 +934,7 @@ src line: 1215
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1229
+src line: 1274
 
 .
 ```
@@ -911,7 +948,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1240
+src line: 1285
 
 .
 ~~~
@@ -925,7 +962,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1253
+src line: 1298
 
 .
 ````
@@ -939,7 +976,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1264
+src line: 1309
 
 .
 ~~~~
@@ -953,7 +990,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1277
+src line: 1322
 
 .
 ```
@@ -962,7 +999,7 @@ src line: 1277
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1283
+src line: 1328
 
 .
 `````
@@ -977,7 +1014,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1297
+src line: 1342
 
 .
 ```
@@ -991,7 +1028,7 @@ src line: 1297
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1310
+src line: 1355
 
 .
 ```
@@ -1001,7 +1038,7 @@ src line: 1310
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1321
+src line: 1366
 
 .
  ```
@@ -1015,7 +1052,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1332
+src line: 1377
 
 .
   ```
@@ -1031,7 +1068,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1345
+src line: 1390
 
 .
    ```
@@ -1047,7 +1084,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1360
+src line: 1405
 
 .
     ```
@@ -1061,7 +1098,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1374
+src line: 1419
 
 .
 ```
@@ -1073,7 +1110,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1383
+src line: 1428
 
 .
    ```
@@ -1085,7 +1122,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1394
+src line: 1439
 
 .
 ```
@@ -1098,7 +1135,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1407
+src line: 1452
 
 .
 ``` ```
@@ -1109,7 +1146,7 @@ aaa</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1415
+src line: 1460
 
 .
 ~~~~~~
@@ -1122,7 +1159,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1428
+src line: 1473
 
 .
 foo
@@ -1138,7 +1175,7 @@ baz
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1444
+src line: 1489
 
 .
 foo
@@ -1155,7 +1192,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1463
+src line: 1508
 
 .
 ```ruby
@@ -1171,7 +1208,7 @@ end
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1476
+src line: 1521
 
 .
 ~~~~    ruby startline=3 $%@#$
@@ -1187,7 +1224,7 @@ end
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1489
+src line: 1534
 
 .
 ````;
@@ -1197,7 +1234,7 @@ src line: 1489
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1498
+src line: 1543
 
 .
 ``` aa ```
@@ -1208,7 +1245,7 @@ foo</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1508
+src line: 1553
 
 .
 ```
@@ -1220,7 +1257,7 @@ src line: 1508
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1542
+src line: 1587
 
 .
 <table>
@@ -1244,7 +1281,7 @@ okay.
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1563
+src line: 1608
 
 .
  <div>
@@ -1257,7 +1294,7 @@ src line: 1563
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1575
+src line: 1620
 
 .
 <DIV CLASS="foo">
@@ -1272,7 +1309,7 @@ src line: 1575
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1591
+src line: 1636
 
 .
 <div></div>
@@ -1287,7 +1324,7 @@ int x = 33;
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1605
+src line: 1650
 
 .
 <!-- Foo
@@ -1300,7 +1337,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1617
+src line: 1662
 
 .
 <?php
@@ -1313,7 +1350,7 @@ src line: 1617
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1629
+src line: 1674
 
 .
 <![CDATA[
@@ -1346,7 +1383,7 @@ else
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1661
+src line: 1706
 
 .
   <!-- foo -->
@@ -1359,7 +1396,7 @@ src line: 1661
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1674
+src line: 1719
 
 .
 Foo
@@ -1374,7 +1411,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1689
+src line: 1734
 
 .
 <div>
@@ -1389,7 +1426,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1703
+src line: 1748
 
 .
 <div class
@@ -1400,7 +1437,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1739
+src line: 1784
 
 .
 <div>
@@ -1415,7 +1452,7 @@ src line: 1739
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1753
+src line: 1798
 
 .
 <div>
@@ -1428,7 +1465,7 @@ src line: 1753
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1774
+src line: 1819
 
 .
 <table>
@@ -1453,7 +1490,7 @@ Hi
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1821
+src line: 1866
 
 .
 [foo]: /url "title"
@@ -1464,7 +1501,7 @@ src line: 1821
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1829
+src line: 1874
 
 .
    [foo]: 
@@ -1477,7 +1514,7 @@ src line: 1829
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1839
+src line: 1884
 
 .
 [Foo*bar\]]:my_(url) 'title (with parens)'
@@ -1488,7 +1525,7 @@ src line: 1839
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1847
+src line: 1892
 
 .
 [Foo bar]:
@@ -1501,7 +1538,7 @@ src line: 1847
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1859
+src line: 1904
 
 .
 [foo]: /url '
@@ -1520,7 +1557,7 @@ line2
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1877
+src line: 1922
 
 .
 [foo]: /url 'title
@@ -1535,7 +1572,7 @@ with blank line'
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1891
+src line: 1936
 
 .
 [foo]:
@@ -1547,7 +1584,7 @@ src line: 1891
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1902
+src line: 1947
 
 .
 [foo]:
@@ -1559,7 +1596,7 @@ src line: 1902
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1913
+src line: 1958
 
 .
 [foo]
@@ -1570,7 +1607,7 @@ src line: 1913
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1924
+src line: 1969
 
 .
 [foo]
@@ -1582,7 +1619,7 @@ src line: 1924
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1936
+src line: 1981
 
 .
 [FOO]: /url
@@ -1593,7 +1630,7 @@ src line: 1936
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1944
+src line: 1989
 
 .
 [ΑΓΩ]: /φου
@@ -1604,7 +1641,7 @@ src line: 1944
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1955
+src line: 2000
 
 .
 [foo]: /url
@@ -1612,7 +1649,7 @@ src line: 1955
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1962
+src line: 2007
 
 .
 [
@@ -1624,7 +1661,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1974
+src line: 2019
 
 .
 [foo]: /url "title" ok
@@ -1633,7 +1670,7 @@ src line: 1974
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1983
+src line: 2028
 
 .
     [foo]: /url "title"
@@ -1646,7 +1683,7 @@ src line: 1983
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 1996
+src line: 2041
 
 .
 ```
@@ -1661,7 +1698,7 @@ src line: 1996
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2010
+src line: 2055
 
 .
 Foo
@@ -1675,7 +1712,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2024
+src line: 2069
 
 .
 # [Foo]
@@ -1689,7 +1726,7 @@ src line: 2024
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2038
+src line: 2083
 
 .
 [foo]: /foo-url "foo"
@@ -1707,7 +1744,7 @@ src line: 2038
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2058
+src line: 2103
 
 .
 [foo]
@@ -1720,7 +1757,7 @@ src line: 2058
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2080
+src line: 2125
 
 .
 aaa
@@ -1732,7 +1769,7 @@ bbb
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2091
+src line: 2136
 
 .
 aaa
@@ -1748,7 +1785,7 @@ ddd</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2106
+src line: 2151
 
 .
 aaa
@@ -1761,7 +1798,7 @@ bbb
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2118
+src line: 2163
 
 .
   aaa
@@ -1772,7 +1809,7 @@ bbb</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2129
+src line: 2174
 
 .
 aaa
@@ -1785,7 +1822,7 @@ ccc</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2142
+src line: 2187
 
 .
    aaa
@@ -1796,7 +1833,7 @@ bbb</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2150
+src line: 2195
 
 .
     aaa
@@ -1808,7 +1845,7 @@ bbb
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2163
+src line: 2208
 
 .
 aaa     
@@ -1819,7 +1856,7 @@ bbb</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2179
+src line: 2224
 
 .
   
@@ -1836,7 +1873,7 @@ aaa
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2244
+src line: 2289
 
 .
 > # Foo
@@ -1851,7 +1888,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2258
+src line: 2303
 
 .
 ># Foo
@@ -1866,7 +1903,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2272
+src line: 2317
 
 .
    > # Foo
@@ -1881,7 +1918,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2286
+src line: 2331
 
 .
     > # Foo
@@ -1895,7 +1932,7 @@ src line: 2286
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2300
+src line: 2345
 
 .
 > # Foo
@@ -1910,7 +1947,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2315
+src line: 2360
 
 .
 > bar
@@ -1925,7 +1962,7 @@ foo</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2331
+src line: 2383
 
 .
 > foo
@@ -1938,7 +1975,7 @@ src line: 2331
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2341
+src line: 2402
 
 .
 > - foo
@@ -1955,7 +1992,7 @@ src line: 2341
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2355
+src line: 2419
 
 .
 >     foo
@@ -1970,7 +2007,7 @@ src line: 2355
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2367
+src line: 2431
 
 .
 > ```
@@ -1985,7 +2022,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2381
+src line: 2445
 
 .
 >
@@ -1995,7 +2032,7 @@ src line: 2381
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2388
+src line: 2452
 
 .
 >
@@ -2007,7 +2044,7 @@ src line: 2388
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2399
+src line: 2463
 
 .
 >
@@ -2020,7 +2057,7 @@ src line: 2399
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2411
+src line: 2475
 
 .
 > foo
@@ -2036,7 +2073,7 @@ src line: 2411
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2432
+src line: 2496
 
 .
 > foo
@@ -2049,7 +2086,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2444
+src line: 2508
 
 .
 > foo
@@ -2063,7 +2100,7 @@ src line: 2444
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2457
+src line: 2521
 
 .
 foo
@@ -2076,7 +2113,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2470
+src line: 2534
 
 .
 > aaa
@@ -2093,7 +2130,7 @@ src line: 2470
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2487
+src line: 2551
 
 .
 > bar
@@ -2106,7 +2143,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2497
+src line: 2561
 
 .
 > bar
@@ -2120,7 +2157,7 @@ baz
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2508
+src line: 2572
 
 .
 > bar
@@ -2134,7 +2171,7 @@ baz
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2523
+src line: 2587
 
 .
 > > > foo
@@ -2151,7 +2188,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2537
+src line: 2601
 
 .
 >>> foo
@@ -2170,7 +2207,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2558
+src line: 2622
 
 .
 >     code
@@ -2187,7 +2224,7 @@ src line: 2558
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2600
+src line: 2664
 
 .
 A paragraph
@@ -2207,7 +2244,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2621
+src line: 2685
 
 .
 1.  A paragraph
@@ -2231,7 +2268,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2653
+src line: 2717
 
 .
 - one
@@ -2245,7 +2282,7 @@ src line: 2653
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2664
+src line: 2728
 
 .
 - one
@@ -2261,7 +2298,7 @@ src line: 2664
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2677
+src line: 2741
 
 .
  -    one
@@ -2276,7 +2313,7 @@ src line: 2677
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2689
+src line: 2753
 
 .
  -    one
@@ -2292,7 +2329,7 @@ src line: 2689
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2710
+src line: 2774
 
 .
    > > 1.  one
@@ -2312,7 +2349,7 @@ src line: 2710
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2736
+src line: 2800
 
 .
 >>- one
@@ -2330,7 +2367,7 @@ src line: 2736
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2754
+src line: 2818
 
 .
 -one
@@ -2342,7 +2379,7 @@ src line: 2754
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2767
+src line: 2831
 
 .
 - foo
@@ -2404,7 +2441,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2828
+src line: 2892
 
 .
 1.  foo
@@ -2431,7 +2468,7 @@ src line: 2828
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2868
+src line: 2932
 
 .
 - foo
@@ -2448,7 +2485,7 @@ src line: 2868
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2884
+src line: 2948
 
 .
   10.  foo
@@ -2465,7 +2502,7 @@ src line: 2884
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2902
+src line: 2966
 
 .
     indented code
@@ -2482,7 +2519,7 @@ paragraph
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2916
+src line: 2980
 
 .
 1.     indented code
@@ -2503,7 +2540,7 @@ src line: 2916
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2937
+src line: 3001
 
 .
 1.      indented code
@@ -2524,7 +2561,7 @@ src line: 2937
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2963
+src line: 3027
 
 .
    foo
@@ -2536,7 +2573,7 @@ bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2972
+src line: 3036
 
 .
 -    foo
@@ -2550,7 +2587,7 @@ src line: 2972
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 2988
+src line: 3052
 
 .
 -  foo
@@ -2566,7 +2603,7 @@ src line: 2988
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3015
+src line: 3079
 
 .
 -
@@ -2592,7 +2629,7 @@ src line: 3015
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3040
+src line: 3104
 
 .
 - foo
@@ -2607,7 +2644,7 @@ src line: 3040
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3054
+src line: 3118
 
 .
 - foo
@@ -2622,7 +2659,7 @@ src line: 3054
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3068
+src line: 3132
 
 .
 1. foo
@@ -2637,7 +2674,7 @@ src line: 3068
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3082
+src line: 3146
 
 .
 *
@@ -2648,7 +2685,7 @@ src line: 3082
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3099
+src line: 3163
 
 .
  1.  A paragraph
@@ -2672,7 +2709,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3122
+src line: 3186
 
 .
   1.  A paragraph
@@ -2696,7 +2733,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3145
+src line: 3209
 
 .
    1.  A paragraph
@@ -2720,7 +2757,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3168
+src line: 3232
 
 .
     1.  A paragraph
@@ -2740,7 +2777,7 @@ src line: 3168
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3197
+src line: 3261
 
 .
   1.  A paragraph
@@ -2764,7 +2801,7 @@ with two lines.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3220
+src line: 3284
 
 .
   1.  A paragraph
@@ -2777,7 +2814,7 @@ with two lines.</li>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3232
+src line: 3296
 
 .
 > 1. > Blockquote
@@ -2796,7 +2833,7 @@ continued here.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3248
+src line: 3312
 
 .
 > 1. > Blockquote
@@ -2815,7 +2852,7 @@ continued here.</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3274
+src line: 3338
 
 .
 - foo
@@ -2836,7 +2873,7 @@ src line: 3274
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3294
+src line: 3358
 
 .
 - foo
@@ -2851,7 +2888,7 @@ src line: 3294
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3308
+src line: 3372
 
 .
 10) foo
@@ -2867,7 +2904,7 @@ src line: 3308
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3323
+src line: 3387
 
 .
 10) foo
@@ -2882,7 +2919,7 @@ src line: 3323
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3337
+src line: 3401
 
 .
 - - foo
@@ -2897,7 +2934,7 @@ src line: 3337
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3349
+src line: 3413
 
 .
 1. - 2. foo
@@ -2916,7 +2953,7 @@ src line: 3349
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3367
+src line: 3431
 
 .
 - # Foo
@@ -2935,7 +2972,7 @@ baz</li>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3603
+src line: 3667
 
 .
 - foo
@@ -2952,7 +2989,7 @@ src line: 3603
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3617
+src line: 3681
 
 .
 1. foo
@@ -2969,7 +3006,7 @@ src line: 3617
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3635
+src line: 3699
 
 .
 Foo
@@ -2984,7 +3021,7 @@ Foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3650
+src line: 3714
 
 .
 The number of windows in my house is
@@ -2997,7 +3034,7 @@ The number of windows in my house is
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3715
+src line: 3779
 
 .
 - foo
@@ -3021,7 +3058,7 @@ src line: 3715
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3740
+src line: 3804
 
 .
 - foo
@@ -3040,7 +3077,7 @@ src line: 3740
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3758
+src line: 3822
 
 .
 - foo
@@ -3066,7 +3103,7 @@ src line: 3758
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3786
+src line: 3850
 
 .
 - foo
@@ -3087,7 +3124,7 @@ src line: 3786
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3804
+src line: 3868
 
 .
 -   foo
@@ -3113,16 +3150,18 @@ src line: 3804
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3832
+src line: 3896
 
 .
 - a
  - b
   - c
    - d
-  - e
- - f
-- g
+    - e
+   - f
+  - g
+ - h
+- i
 .
 <ul>
 <li>a</li>
@@ -3132,11 +3171,36 @@ src line: 3832
 <li>e</li>
 <li>f</li>
 <li>g</li>
+<li>h</li>
+<li>i</li>
 </ul>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3855
+src line: 3920
+
+.
+1. a
+
+  2. b
+
+    3. c
+.
+<ol>
+<li>
+<p>a</p>
+</li>
+<li>
+<p>b</p>
+</li>
+<li>
+<p>c</p>
+</li>
+</ol>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 3943
 
 .
 - a
@@ -3158,7 +3222,7 @@ src line: 3855
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3876
+src line: 3964
 
 .
 * a
@@ -3178,7 +3242,7 @@ src line: 3876
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3897
+src line: 3985
 
 .
 - a
@@ -3202,7 +3266,7 @@ src line: 3897
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3918
+src line: 4006
 
 .
 - a
@@ -3225,7 +3289,7 @@ src line: 3918
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3940
+src line: 4028
 
 .
 - a
@@ -3249,7 +3313,7 @@ src line: 3940
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3965
+src line: 4053
 
 .
 - a
@@ -3272,7 +3336,7 @@ src line: 3965
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 3988
+src line: 4076
 
 .
 * a
@@ -3291,7 +3355,7 @@ src line: 3988
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4007
+src line: 4095
 
 .
 - a
@@ -3314,7 +3378,7 @@ src line: 4007
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4029
+src line: 4117
 
 .
 - a
@@ -3325,7 +3389,7 @@ src line: 4029
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4037
+src line: 4125
 
 .
 - a
@@ -3341,7 +3405,7 @@ src line: 4037
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4053
+src line: 4141
 
 .
 1. ```
@@ -3360,7 +3424,7 @@ src line: 4053
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4071
+src line: 4159
 
 .
 * foo
@@ -3380,7 +3444,7 @@ src line: 4071
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4088
+src line: 4176
 
 .
 - a
@@ -3410,7 +3474,7 @@ src line: 4088
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4121
+src line: 4209
 
 .
 `hi`lo`
@@ -3419,7 +3483,7 @@ src line: 4121
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4134
+src line: 4222
 
 .
 \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
@@ -3428,7 +3492,7 @@ src line: 4134
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4143
+src line: 4231
 
 .
 \	\A\a\ \3\φ\«
@@ -3437,7 +3501,7 @@ src line: 4143
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4152
+src line: 4240
 
 .
 \*not emphasized*
@@ -3460,7 +3524,7 @@ src line: 4152
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4174
+src line: 4262
 
 .
 \\*emphasis*
@@ -3469,7 +3533,7 @@ src line: 4174
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4182
+src line: 4270
 
 .
 foo\
@@ -3480,7 +3544,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4193
+src line: 4281
 
 .
 `` \[\` ``
@@ -3489,7 +3553,7 @@ src line: 4193
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4199
+src line: 4287
 
 .
     \[\]
@@ -3499,7 +3563,7 @@ src line: 4199
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4206
+src line: 4294
 
 .
 ~~~
@@ -3511,7 +3575,7 @@ src line: 4206
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4215
+src line: 4303
 
 .
 <http://example.com?find=\*>
@@ -3520,7 +3584,7 @@ src line: 4215
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4221
+src line: 4309
 
 .
 <a href="/bar\/)">
@@ -3529,7 +3593,7 @@ src line: 4221
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4230
+src line: 4318
 
 .
 [foo](/bar\* "ti\*tle")
@@ -3538,7 +3602,7 @@ src line: 4230
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4236
+src line: 4324
 
 .
 [foo]
@@ -3549,7 +3613,7 @@ src line: 4236
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4244
+src line: 4332
 
 .
 ``` foo\+bar
@@ -3561,7 +3625,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4270
+src line: 4358
 
 .
 &nbsp; &amp; &copy; &AElig; &Dcaron; &frac34; &HilbertSpace; &DifferentialD; &ClockwiseContourIntegral;
@@ -3570,16 +3634,16 @@ src line: 4270
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4282
+src line: 4371
 
 .
-&#35; &#1234; &#992; &#98765432;
+&#35; &#1234; &#992; &#98765432; &#0;
 .
-<p># Ӓ Ϡ �</p>
+<p># Ӓ Ϡ � �</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4292
+src line: 4382
 
 .
 &#X22; &#XD06; &#xcab;
@@ -3588,7 +3652,7 @@ src line: 4292
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4300
+src line: 4390
 
 .
 &nbsp &x; &#; &#x; &ThisIsWayTooLongToBeAnEntityIsntIt; &hi?;
@@ -3597,7 +3661,7 @@ src line: 4300
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4310
+src line: 4400
 
 .
 &copy
@@ -3606,7 +3670,7 @@ src line: 4310
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4319
+src line: 4409
 
 .
 &MadeUpEntity;
@@ -3615,7 +3679,7 @@ src line: 4319
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4329
+src line: 4419
 
 .
 <a href="&ouml;&ouml;.html">
@@ -3624,7 +3688,7 @@ src line: 4329
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4335
+src line: 4425
 
 .
 [foo](/f&ouml;&ouml; "f&ouml;&ouml;")
@@ -3633,7 +3697,7 @@ src line: 4335
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4341
+src line: 4431
 
 .
 [foo]
@@ -3644,7 +3708,7 @@ src line: 4341
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4349
+src line: 4439
 
 .
 ``` f&ouml;&ouml;
@@ -3656,7 +3720,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4360
+src line: 4450
 
 .
 `f&ouml;&ouml;`
@@ -3665,7 +3729,7 @@ src line: 4360
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4366
+src line: 4456
 
 .
     f&ouml;f&ouml;
@@ -3675,7 +3739,7 @@ src line: 4366
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4387
+src line: 4477
 
 .
 `foo`
@@ -3684,7 +3748,7 @@ src line: 4387
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4396
+src line: 4486
 
 .
 `` foo ` bar  ``
@@ -3693,7 +3757,7 @@ src line: 4396
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4405
+src line: 4495
 
 .
 ` `` `
@@ -3702,7 +3766,7 @@ src line: 4405
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4413
+src line: 4503
 
 .
 ``
@@ -3713,7 +3777,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4424
+src line: 4514
 
 .
 `foo   bar
@@ -3723,7 +3787,7 @@ src line: 4424
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4444
+src line: 4534
 
 .
 `foo `` bar`
@@ -3732,7 +3796,7 @@ src line: 4444
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4453
+src line: 4543
 
 .
 `foo\`bar`
@@ -3741,7 +3805,7 @@ src line: 4453
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4468
+src line: 4558
 
 .
 *foo`*`
@@ -3750,7 +3814,7 @@ src line: 4468
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4476
+src line: 4566
 
 .
 [not a `link](/foo`)
@@ -3759,7 +3823,7 @@ src line: 4476
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4485
+src line: 4575
 
 .
 `<a href="`">`
@@ -3768,7 +3832,7 @@ src line: 4485
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4493
+src line: 4583
 
 .
 <a href="`">`
@@ -3777,7 +3841,7 @@ src line: 4493
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4501
+src line: 4591
 
 .
 `<http://foo.bar.`baz>`
@@ -3786,7 +3850,7 @@ src line: 4501
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4509
+src line: 4599
 
 .
 <http://foo.bar.`baz>`
@@ -3795,7 +3859,7 @@ src line: 4509
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4518
+src line: 4608
 
 .
 ```foo``
@@ -3804,7 +3868,7 @@ src line: 4518
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4524
+src line: 4614
 
 .
 `foo
@@ -3813,7 +3877,7 @@ src line: 4524
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4723
+src line: 4823
 
 .
 *foo bar*
@@ -3822,7 +3886,7 @@ src line: 4723
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4732
+src line: 4832
 
 .
 a * foo bar*
@@ -3831,7 +3895,7 @@ a * foo bar*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4742
+src line: 4842
 
 .
 a*"foo"*
@@ -3840,7 +3904,7 @@ a*"foo"*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4750
+src line: 4850
 
 .
 * a *
@@ -3849,7 +3913,7 @@ src line: 4750
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4758
+src line: 4858
 
 .
 foo*bar*
@@ -3858,7 +3922,7 @@ foo*bar*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4764
+src line: 4864
 
 .
 5*6*78
@@ -3867,7 +3931,7 @@ src line: 4764
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4772
+src line: 4872
 
 .
 _foo bar_
@@ -3876,7 +3940,7 @@ _foo bar_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4781
+src line: 4881
 
 .
 _ foo bar_
@@ -3885,7 +3949,7 @@ _ foo bar_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4790
+src line: 4890
 
 .
 a_"foo"_
@@ -3894,7 +3958,7 @@ a_"foo"_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4798
+src line: 4898
 
 .
 foo_bar_
@@ -3903,7 +3967,7 @@ foo_bar_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4804
+src line: 4904
 
 .
 5_6_78
@@ -3912,7 +3976,7 @@ src line: 4804
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4810
+src line: 4910
 
 .
 пристаням_стремятся_
@@ -3921,7 +3985,7 @@ src line: 4810
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4819
+src line: 4919
 
 .
 aa_"bb"_cc
@@ -3930,16 +3994,16 @@ aa_"bb"_cc
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4828
+src line: 4929
 
 .
-"aa"_"bb"_"cc"
+foo-_(bar)_
 .
-<p>&quot;aa&quot;_&quot;bb&quot;_&quot;cc&quot;</p>
+<p>foo-<em>(bar)</em></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4839
+src line: 4940
 
 .
 _foo*
@@ -3948,7 +4012,7 @@ _foo*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4848
+src line: 4949
 
 .
 *foo bar *
@@ -3957,7 +4021,7 @@ src line: 4848
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4856
+src line: 4957
 
 .
 *foo bar
@@ -3970,7 +4034,7 @@ src line: 4856
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4870
+src line: 4971
 
 .
 *(*foo)
@@ -3979,7 +4043,7 @@ src line: 4870
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4879
+src line: 4980
 
 .
 *(*foo*)*
@@ -3988,7 +4052,7 @@ src line: 4879
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4887
+src line: 4988
 
 .
 *foo*bar
@@ -3997,7 +4061,7 @@ src line: 4887
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4899
+src line: 5000
 
 .
 _foo bar _
@@ -4006,7 +4070,7 @@ _foo bar _
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4908
+src line: 5009
 
 .
 _(_foo)
@@ -4015,7 +4079,7 @@ _(_foo)
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4916
+src line: 5017
 
 .
 _(_foo_)_
@@ -4024,7 +4088,7 @@ _(_foo_)_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4924
+src line: 5025
 
 .
 _foo_bar
@@ -4033,7 +4097,7 @@ _foo_bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4930
+src line: 5031
 
 .
 _пристаням_стремятся
@@ -4042,7 +4106,7 @@ _пристаням_стремятся
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4936
+src line: 5037
 
 .
 _foo_bar_baz_
@@ -4051,7 +4115,16 @@ _foo_bar_baz_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4944
+src line: 5047
+
+.
+_(bar)_.
+.
+<p><em>(bar)</em>.</p>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 5055
 
 .
 **foo bar**
@@ -4060,7 +4133,7 @@ src line: 4944
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4953
+src line: 5064
 
 .
 ** foo bar**
@@ -4069,7 +4142,7 @@ src line: 4953
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4963
+src line: 5074
 
 .
 a**"foo"**
@@ -4078,7 +4151,7 @@ a**"foo"**
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4971
+src line: 5082
 
 .
 foo**bar**
@@ -4087,7 +4160,7 @@ foo**bar**
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4979
+src line: 5090
 
 .
 __foo bar__
@@ -4096,7 +4169,7 @@ __foo bar__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4988
+src line: 5099
 
 .
 __ foo bar__
@@ -4105,7 +4178,7 @@ __ foo bar__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 4995
+src line: 5106
 
 .
 __
@@ -4116,7 +4189,7 @@ foo bar__</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5006
+src line: 5117
 
 .
 a__"foo"__
@@ -4125,7 +4198,7 @@ a__"foo"__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5014
+src line: 5125
 
 .
 foo__bar__
@@ -4134,7 +4207,7 @@ foo__bar__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5020
+src line: 5131
 
 .
 5__6__78
@@ -4143,7 +4216,7 @@ src line: 5020
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5026
+src line: 5137
 
 .
 пристаням__стремятся__
@@ -4152,7 +4225,7 @@ src line: 5026
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5032
+src line: 5143
 
 .
 __foo, __bar__, baz__
@@ -4161,7 +4234,16 @@ __foo, __bar__, baz__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5043
+src line: 5153
+
+.
+foo-__(bar)__
+.
+<p>foo-<strong>(bar)</strong></p>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 5165
 
 .
 **foo bar **
@@ -4170,7 +4252,7 @@ src line: 5043
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5055
+src line: 5177
 
 .
 **(**foo)
@@ -4179,7 +4261,7 @@ src line: 5055
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5064
+src line: 5186
 
 .
 *(**foo**)*
@@ -4188,7 +4270,7 @@ src line: 5064
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5070
+src line: 5192
 
 .
 **Gomphocarpus (*Gomphocarpus physocarpus*, syn.
@@ -4199,7 +4281,7 @@ src line: 5070
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5078
+src line: 5200
 
 .
 **foo "*bar*" foo**
@@ -4208,7 +4290,7 @@ src line: 5078
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5086
+src line: 5208
 
 .
 **foo**bar
@@ -4217,7 +4299,7 @@ src line: 5086
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5097
+src line: 5219
 
 .
 __foo bar __
@@ -4226,7 +4308,7 @@ __foo bar __
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5106
+src line: 5228
 
 .
 __(__foo)
@@ -4235,7 +4317,7 @@ __(__foo)
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5115
+src line: 5237
 
 .
 _(__foo__)_
@@ -4244,7 +4326,7 @@ _(__foo__)_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5123
+src line: 5245
 
 .
 __foo__bar
@@ -4253,7 +4335,7 @@ __foo__bar
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5129
+src line: 5251
 
 .
 __пристаням__стремятся
@@ -4262,7 +4344,7 @@ __пристаням__стремятся
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5135
+src line: 5257
 
 .
 __foo__bar__baz__
@@ -4271,7 +4353,16 @@ __foo__bar__baz__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5146
+src line: 5267
+
+.
+__(bar)__.
+.
+<p><strong>(bar)</strong>.</p>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 5278
 
 .
 *foo [bar](/url)*
@@ -4280,7 +4371,7 @@ src line: 5146
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5152
+src line: 5284
 
 .
 *foo
@@ -4291,7 +4382,7 @@ bar</em></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5163
+src line: 5295
 
 .
 _foo __bar__ baz_
@@ -4300,7 +4391,7 @@ _foo __bar__ baz_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5169
+src line: 5301
 
 .
 _foo _bar_ baz_
@@ -4309,7 +4400,7 @@ _foo _bar_ baz_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5175
+src line: 5307
 
 .
 __foo_ bar_
@@ -4318,7 +4409,7 @@ __foo_ bar_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5181
+src line: 5313
 
 .
 *foo *bar**
@@ -4327,7 +4418,7 @@ src line: 5181
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5187
+src line: 5319
 
 .
 *foo **bar** baz*
@@ -4336,7 +4427,7 @@ src line: 5187
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5195
+src line: 5327
 
 .
 *foo**bar**baz*
@@ -4345,7 +4436,7 @@ src line: 5195
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5204
+src line: 5336
 
 .
 ***foo** bar*
@@ -4354,7 +4445,7 @@ src line: 5204
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5210
+src line: 5342
 
 .
 *foo **bar***
@@ -4363,7 +4454,7 @@ src line: 5210
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5220
+src line: 5352
 
 .
 *foo**bar***
@@ -4372,7 +4463,7 @@ src line: 5220
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5229
+src line: 5361
 
 .
 *foo **bar *baz* bim** bop*
@@ -4381,7 +4472,7 @@ src line: 5229
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5235
+src line: 5367
 
 .
 *foo [*bar*](/url)*
@@ -4390,7 +4481,7 @@ src line: 5235
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5243
+src line: 5375
 
 .
 ** is not an empty emphasis
@@ -4399,7 +4490,7 @@ src line: 5243
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5249
+src line: 5381
 
 .
 **** is not an empty strong emphasis
@@ -4408,7 +4499,7 @@ src line: 5249
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5261
+src line: 5393
 
 .
 **foo [bar](/url)**
@@ -4417,7 +4508,7 @@ src line: 5261
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5267
+src line: 5399
 
 .
 **foo
@@ -4428,7 +4519,7 @@ bar</strong></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5278
+src line: 5410
 
 .
 __foo _bar_ baz__
@@ -4437,7 +4528,7 @@ __foo _bar_ baz__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5284
+src line: 5416
 
 .
 __foo __bar__ baz__
@@ -4446,7 +4537,7 @@ __foo __bar__ baz__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5290
+src line: 5422
 
 .
 ____foo__ bar__
@@ -4455,7 +4546,7 @@ ____foo__ bar__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5296
+src line: 5428
 
 .
 **foo **bar****
@@ -4464,7 +4555,7 @@ src line: 5296
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5302
+src line: 5434
 
 .
 **foo *bar* baz**
@@ -4473,7 +4564,7 @@ src line: 5302
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5310
+src line: 5442
 
 .
 **foo*bar*baz**
@@ -4482,7 +4573,7 @@ src line: 5310
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5319
+src line: 5451
 
 .
 ***foo* bar**
@@ -4491,7 +4582,7 @@ src line: 5319
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5325
+src line: 5457
 
 .
 **foo *bar***
@@ -4500,7 +4591,7 @@ src line: 5325
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5333
+src line: 5465
 
 .
 **foo *bar **baz**
@@ -4511,7 +4602,7 @@ bim</em> bop</strong></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5341
+src line: 5473
 
 .
 **foo [*bar*](/url)**
@@ -4520,7 +4611,7 @@ src line: 5341
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5349
+src line: 5481
 
 .
 __ is not an empty emphasis
@@ -4529,7 +4620,7 @@ __ is not an empty emphasis
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5355
+src line: 5487
 
 .
 ____ is not an empty strong emphasis
@@ -4538,7 +4629,7 @@ ____ is not an empty strong emphasis
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5364
+src line: 5496
 
 .
 foo ***
@@ -4547,7 +4638,7 @@ foo ***
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5370
+src line: 5502
 
 .
 foo *\**
@@ -4556,7 +4647,7 @@ foo *\**
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5376
+src line: 5508
 
 .
 foo *_*
@@ -4565,7 +4656,7 @@ foo *_*
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5382
+src line: 5514
 
 .
 foo *****
@@ -4574,7 +4665,7 @@ foo *****
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5388
+src line: 5520
 
 .
 foo **\***
@@ -4583,7 +4674,7 @@ foo **\***
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5394
+src line: 5526
 
 .
 foo **_**
@@ -4592,7 +4683,7 @@ foo **_**
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5404
+src line: 5536
 
 .
 **foo*
@@ -4601,7 +4692,7 @@ src line: 5404
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5410
+src line: 5542
 
 .
 *foo**
@@ -4610,7 +4701,7 @@ src line: 5410
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5416
+src line: 5548
 
 .
 ***foo**
@@ -4619,7 +4710,7 @@ src line: 5416
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5422
+src line: 5554
 
 .
 ****foo*
@@ -4628,7 +4719,7 @@ src line: 5422
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5428
+src line: 5560
 
 .
 **foo***
@@ -4637,7 +4728,7 @@ src line: 5428
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5434
+src line: 5566
 
 .
 *foo****
@@ -4646,7 +4737,7 @@ src line: 5434
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5443
+src line: 5575
 
 .
 foo ___
@@ -4655,7 +4746,7 @@ foo ___
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5449
+src line: 5581
 
 .
 foo _\__
@@ -4664,7 +4755,7 @@ foo _\__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5455
+src line: 5587
 
 .
 foo _*_
@@ -4673,7 +4764,7 @@ foo _*_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5461
+src line: 5593
 
 .
 foo _____
@@ -4682,7 +4773,7 @@ foo _____
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5467
+src line: 5599
 
 .
 foo __\___
@@ -4691,7 +4782,7 @@ foo __\___
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5473
+src line: 5605
 
 .
 foo __*__
@@ -4700,7 +4791,7 @@ foo __*__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5479
+src line: 5611
 
 .
 __foo_
@@ -4709,7 +4800,7 @@ __foo_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5489
+src line: 5621
 
 .
 _foo__
@@ -4718,7 +4809,7 @@ _foo__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5495
+src line: 5627
 
 .
 ___foo__
@@ -4727,7 +4818,7 @@ ___foo__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5501
+src line: 5633
 
 .
 ____foo_
@@ -4736,7 +4827,7 @@ ____foo_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5507
+src line: 5639
 
 .
 __foo___
@@ -4745,7 +4836,7 @@ __foo___
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5513
+src line: 5645
 
 .
 _foo____
@@ -4754,7 +4845,7 @@ _foo____
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5522
+src line: 5654
 
 .
 **foo**
@@ -4763,7 +4854,7 @@ src line: 5522
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5528
+src line: 5660
 
 .
 *_foo_*
@@ -4772,7 +4863,7 @@ src line: 5528
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5534
+src line: 5666
 
 .
 __foo__
@@ -4781,7 +4872,7 @@ __foo__
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5540
+src line: 5672
 
 .
 _*foo*_
@@ -4790,7 +4881,7 @@ _*foo*_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5549
+src line: 5681
 
 .
 ****foo****
@@ -4799,7 +4890,7 @@ src line: 5549
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5555
+src line: 5687
 
 .
 ____foo____
@@ -4808,7 +4899,7 @@ ____foo____
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5565
+src line: 5697
 
 .
 ******foo******
@@ -4817,7 +4908,7 @@ src line: 5565
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5573
+src line: 5705
 
 .
 ***foo***
@@ -4826,7 +4917,7 @@ src line: 5573
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5579
+src line: 5711
 
 .
 _____foo_____
@@ -4835,7 +4926,7 @@ _____foo_____
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5587
+src line: 5719
 
 .
 *foo _bar* baz_
@@ -4844,7 +4935,7 @@ src line: 5587
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5593
+src line: 5725
 
 .
 **foo*bar**
@@ -4853,7 +4944,7 @@ src line: 5593
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5602
+src line: 5734
 
 .
 **foo **bar baz**
@@ -4862,7 +4953,7 @@ src line: 5602
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5608
+src line: 5740
 
 .
 *foo *bar baz*
@@ -4871,7 +4962,7 @@ src line: 5608
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5616
+src line: 5748
 
 .
 *[bar*](/url)
@@ -4880,7 +4971,7 @@ src line: 5616
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5622
+src line: 5754
 
 .
 _foo [bar_](/url)
@@ -4889,7 +4980,7 @@ _foo [bar_](/url)
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5628
+src line: 5760
 
 .
 *<img src="foo" title="*"/>
@@ -4898,7 +4989,7 @@ src line: 5628
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5634
+src line: 5766
 
 .
 **<a href="**">
@@ -4907,7 +4998,7 @@ src line: 5634
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5640
+src line: 5772
 
 .
 __<a href="__">
@@ -4916,7 +5007,7 @@ __<a href="__">
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5646
+src line: 5778
 
 .
 *a `*`*
@@ -4925,7 +5016,7 @@ src line: 5646
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5652
+src line: 5784
 
 .
 _a `_`_
@@ -4934,7 +5025,7 @@ _a `_`_
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5658
+src line: 5790
 
 .
 **a<http://foo.bar/?q=**>
@@ -4943,7 +5034,7 @@ src line: 5658
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5664
+src line: 5796
 
 .
 __a<http://foo.bar/?q=__>
@@ -4952,7 +5043,7 @@ __a<http://foo.bar/?q=__>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5741
+src line: 5873
 
 .
 [link](/uri "title")
@@ -4961,7 +5052,7 @@ src line: 5741
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5749
+src line: 5881
 
 .
 [link](/uri)
@@ -4970,7 +5061,7 @@ src line: 5749
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5757
+src line: 5889
 
 .
 [link]()
@@ -4979,7 +5070,7 @@ src line: 5757
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5763
+src line: 5895
 
 .
 [link](<>)
@@ -4988,7 +5079,7 @@ src line: 5763
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5772
+src line: 5904
 
 .
 [link](/my uri)
@@ -4997,7 +5088,7 @@ src line: 5772
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5778
+src line: 5910
 
 .
 [link](</my uri>)
@@ -5006,7 +5097,7 @@ src line: 5778
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5786
+src line: 5918
 
 .
 [link](foo
@@ -5017,7 +5108,7 @@ bar)</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5794
+src line: 5926
 
 .
 [link](<foo
@@ -5028,7 +5119,7 @@ bar>)</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5804
+src line: 5936
 
 .
 [link]((foo)and(bar))
@@ -5037,7 +5128,7 @@ src line: 5804
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5813
+src line: 5945
 
 .
 [link](foo(and(bar)))
@@ -5046,7 +5137,7 @@ src line: 5813
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5819
+src line: 5951
 
 .
 [link](foo(and\(bar\)))
@@ -5055,7 +5146,7 @@ src line: 5819
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5825
+src line: 5957
 
 .
 [link](<foo(and(bar))>)
@@ -5064,7 +5155,7 @@ src line: 5825
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5834
+src line: 5966
 
 .
 [link](foo\)\:)
@@ -5073,7 +5164,7 @@ src line: 5834
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5845
+src line: 5977
 
 .
 [link](foo%20b&auml;)
@@ -5082,7 +5173,7 @@ src line: 5845
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5855
+src line: 5987
 
 .
 [link]("title")
@@ -5091,7 +5182,7 @@ src line: 5855
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5863
+src line: 5995
 
 .
 [link](/url "title")
@@ -5104,7 +5195,7 @@ src line: 5863
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5875
+src line: 6007
 
 .
 [link](/url "title \"&quot;")
@@ -5113,7 +5204,7 @@ src line: 5875
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5883
+src line: 6015
 
 .
 [link](/url "title "and" title")
@@ -5122,7 +5213,7 @@ src line: 5883
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5891
+src line: 6023
 
 .
 [link](/url 'title "and" title')
@@ -5131,7 +5222,7 @@ src line: 5891
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5913
+src line: 6045
 
 .
 [link](   /uri
@@ -5141,7 +5232,7 @@ src line: 5913
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5923
+src line: 6055
 
 .
 [link] (/uri)
@@ -5150,7 +5241,7 @@ src line: 5923
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5932
+src line: 6064
 
 .
 [link [foo [bar]]](/uri)
@@ -5159,7 +5250,7 @@ src line: 5932
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5938
+src line: 6070
 
 .
 [link] bar](/uri)
@@ -5168,7 +5259,7 @@ src line: 5938
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5944
+src line: 6076
 
 .
 [link [bar](/uri)
@@ -5177,7 +5268,7 @@ src line: 5944
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5950
+src line: 6082
 
 .
 [link \[bar](/uri)
@@ -5186,7 +5277,7 @@ src line: 5950
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5958
+src line: 6090
 
 .
 [link *foo **bar** `#`*](/uri)
@@ -5195,7 +5286,7 @@ src line: 5958
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5964
+src line: 6096
 
 .
 [![moon](moon.jpg)](/uri)
@@ -5204,7 +5295,7 @@ src line: 5964
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5972
+src line: 6104
 
 .
 [foo [bar](/uri)](/uri)
@@ -5213,7 +5304,7 @@ src line: 5972
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5978
+src line: 6110
 
 .
 [foo *[bar [baz](/uri)](/uri)*](/uri)
@@ -5222,7 +5313,7 @@ src line: 5978
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5984
+src line: 6116
 
 .
 ![[[foo](uri1)](uri2)](uri3)
@@ -5231,7 +5322,7 @@ src line: 5984
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5993
+src line: 6125
 
 .
 *[foo*](/uri)
@@ -5240,7 +5331,7 @@ src line: 5993
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 5999
+src line: 6131
 
 .
 [foo *bar](baz*)
@@ -5249,7 +5340,7 @@ src line: 5999
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6008
+src line: 6140
 
 .
 *foo [bar* baz]
@@ -5258,7 +5349,7 @@ src line: 6008
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6017
+src line: 6149
 
 .
 [foo <bar attr="](baz)">
@@ -5267,7 +5358,7 @@ src line: 6017
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6023
+src line: 6155
 
 .
 [foo`](/uri)`
@@ -5276,7 +5367,7 @@ src line: 6023
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6029
+src line: 6161
 
 .
 [foo<http://example.com/?search=](uri)>
@@ -5285,7 +5376,7 @@ src line: 6029
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6062
+src line: 6195
 
 .
 [foo][bar]
@@ -5296,7 +5387,7 @@ src line: 6062
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6076
+src line: 6209
 
 .
 [link [foo [bar]]][ref]
@@ -5307,7 +5398,7 @@ src line: 6076
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6084
+src line: 6217
 
 .
 [link \[bar][ref]
@@ -5318,7 +5409,7 @@ src line: 6084
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6094
+src line: 6227
 
 .
 [link *foo **bar** `#`*][ref]
@@ -5329,7 +5420,7 @@ src line: 6094
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6102
+src line: 6235
 
 .
 [![moon](moon.jpg)][ref]
@@ -5340,7 +5431,7 @@ src line: 6102
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6112
+src line: 6245
 
 .
 [foo [bar](/uri)][ref]
@@ -5351,7 +5442,7 @@ src line: 6112
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6120
+src line: 6253
 
 .
 [foo *bar [baz][ref]*][ref]
@@ -5362,7 +5453,7 @@ src line: 6120
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6134
+src line: 6267
 
 .
 *[foo*][ref]
@@ -5373,7 +5464,7 @@ src line: 6134
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6142
+src line: 6275
 
 .
 [foo *bar][ref]
@@ -5384,7 +5475,7 @@ src line: 6142
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6153
+src line: 6286
 
 .
 [foo <bar attr="][ref]">
@@ -5395,7 +5486,7 @@ src line: 6153
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6161
+src line: 6294
 
 .
 [foo`][ref]`
@@ -5406,7 +5497,7 @@ src line: 6161
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6169
+src line: 6302
 
 .
 [foo<http://example.com/?search=][ref]>
@@ -5417,7 +5508,7 @@ src line: 6169
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6179
+src line: 6312
 
 .
 [foo][BaR]
@@ -5428,7 +5519,7 @@ src line: 6179
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6189
+src line: 6322
 
 .
 [Толпой][Толпой] is a Russian word.
@@ -5439,7 +5530,7 @@ src line: 6189
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6200
+src line: 6333
 
 .
 [Foo
@@ -5451,7 +5542,7 @@ src line: 6200
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6211
+src line: 6344
 
 .
 [foo] [bar]
@@ -5462,7 +5553,7 @@ src line: 6211
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6219
+src line: 6352
 
 .
 [foo]
@@ -5474,7 +5565,7 @@ src line: 6219
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6231
+src line: 6364
 
 .
 [foo]: /url1
@@ -5487,7 +5578,7 @@ src line: 6231
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6245
+src line: 6378
 
 .
 [bar][foo\!]
@@ -5498,7 +5589,7 @@ src line: 6245
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6256
+src line: 6389
 
 .
 [foo][ref[]
@@ -5510,7 +5601,7 @@ src line: 6256
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6265
+src line: 6398
 
 .
 [foo][ref[bar]]
@@ -5522,7 +5613,7 @@ src line: 6265
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6274
+src line: 6407
 
 .
 [[[foo]]]
@@ -5534,7 +5625,7 @@ src line: 6274
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6283
+src line: 6416
 
 .
 [foo][ref\[]
@@ -5545,7 +5636,35 @@ src line: 6283
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6300
+src line: 6426
+
+.
+[]
+
+[]: /uri
+.
+<p>[]</p>
+<p>[]: /uri</p>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 6435
+
+.
+[
+ ]
+
+[
+ ]: /uri
+.
+<p>[
+]</p>
+<p>[
+]: /uri</p>
+.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 6457
 
 .
 [foo][]
@@ -5556,7 +5675,7 @@ src line: 6300
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6308
+src line: 6465
 
 .
 [*foo* bar][]
@@ -5567,7 +5686,7 @@ src line: 6308
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6318
+src line: 6475
 
 .
 [Foo][]
@@ -5578,7 +5697,7 @@ src line: 6318
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6330
+src line: 6487
 
 .
 [foo] 
@@ -5590,7 +5709,7 @@ src line: 6330
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6348
+src line: 6505
 
 .
 [foo]
@@ -5601,7 +5720,7 @@ src line: 6348
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6356
+src line: 6513
 
 .
 [*foo* bar]
@@ -5612,7 +5731,7 @@ src line: 6356
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6364
+src line: 6521
 
 .
 [[*foo* bar]]
@@ -5623,7 +5742,7 @@ src line: 6364
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6372
+src line: 6529
 
 .
 [[bar [foo]
@@ -5634,7 +5753,7 @@ src line: 6372
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6382
+src line: 6539
 
 .
 [Foo]
@@ -5645,7 +5764,7 @@ src line: 6382
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6392
+src line: 6549
 
 .
 [foo] bar
@@ -5656,7 +5775,7 @@ src line: 6392
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6403
+src line: 6560
 
 .
 \[foo]
@@ -5667,7 +5786,7 @@ src line: 6403
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6414
+src line: 6571
 
 .
 [foo*]: /url
@@ -5678,7 +5797,7 @@ src line: 6414
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6424
+src line: 6581
 
 .
 [foo][bar]
@@ -5690,7 +5809,7 @@ src line: 6424
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6436
+src line: 6593
 
 .
 [foo][bar][baz]
@@ -5701,7 +5820,7 @@ src line: 6436
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6447
+src line: 6604
 
 .
 [foo][bar][baz]
@@ -5713,7 +5832,7 @@ src line: 6447
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6459
+src line: 6616
 
 .
 [foo][bar][baz]
@@ -5725,7 +5844,7 @@ src line: 6459
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6481
+src line: 6638
 
 .
 ![foo](/url "title")
@@ -5734,7 +5853,7 @@ src line: 6481
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6487
+src line: 6644
 
 .
 ![foo *bar*]
@@ -5745,7 +5864,7 @@ src line: 6487
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6495
+src line: 6652
 
 .
 ![foo ![bar](/url)](/url2)
@@ -5754,7 +5873,7 @@ src line: 6495
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6501
+src line: 6658
 
 .
 ![foo [bar](/url)](/url2)
@@ -5763,7 +5882,7 @@ src line: 6501
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6514
+src line: 6671
 
 .
 ![foo *bar*][]
@@ -5774,7 +5893,7 @@ src line: 6514
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6522
+src line: 6679
 
 .
 ![foo *bar*][foobar]
@@ -5785,7 +5904,7 @@ src line: 6522
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6530
+src line: 6687
 
 .
 ![foo](train.jpg)
@@ -5794,7 +5913,7 @@ src line: 6530
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6536
+src line: 6693
 
 .
 My ![foo bar](/path/to/train.jpg  "title"   )
@@ -5803,7 +5922,7 @@ My ![foo bar](/path/to/train.jpg  "title"   )
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6542
+src line: 6699
 
 .
 ![foo](<url>)
@@ -5812,7 +5931,7 @@ src line: 6542
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6548
+src line: 6705
 
 .
 ![](/url)
@@ -5821,7 +5940,7 @@ src line: 6548
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6556
+src line: 6713
 
 .
 ![foo] [bar]
@@ -5832,7 +5951,7 @@ src line: 6556
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6564
+src line: 6721
 
 .
 ![foo] [bar]
@@ -5843,7 +5962,7 @@ src line: 6564
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6574
+src line: 6731
 
 .
 ![foo][]
@@ -5854,7 +5973,7 @@ src line: 6574
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6582
+src line: 6739
 
 .
 ![*foo* bar][]
@@ -5865,7 +5984,7 @@ src line: 6582
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6592
+src line: 6749
 
 .
 ![Foo][]
@@ -5876,7 +5995,7 @@ src line: 6592
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6603
+src line: 6760
 
 .
 ![foo] 
@@ -5888,7 +6007,7 @@ src line: 6603
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6614
+src line: 6771
 
 .
 ![foo]
@@ -5899,7 +6018,7 @@ src line: 6614
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6622
+src line: 6779
 
 .
 ![*foo* bar]
@@ -5910,7 +6029,7 @@ src line: 6622
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6632
+src line: 6789
 
 .
 ![[foo]]
@@ -5922,7 +6041,7 @@ src line: 6632
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6643
+src line: 6800
 
 .
 ![Foo]
@@ -5933,7 +6052,7 @@ src line: 6643
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6654
+src line: 6811
 
 .
 \!\[foo]
@@ -5944,7 +6063,7 @@ src line: 6654
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6665
+src line: 6822
 
 .
 \![foo]
@@ -5955,7 +6074,7 @@ src line: 6665
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6718
+src line: 6875
 
 .
 <http://foo.bar.baz>
@@ -5964,7 +6083,7 @@ src line: 6718
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6724
+src line: 6881
 
 .
 <http://foo.bar.baz/test?q=hello&id=22&boolean>
@@ -5973,7 +6092,7 @@ src line: 6724
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6730
+src line: 6887
 
 .
 <irc://foo.bar:2233/baz>
@@ -5982,7 +6101,7 @@ src line: 6730
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6738
+src line: 6895
 
 .
 <MAILTO:FOO@BAR.BAZ>
@@ -5991,7 +6110,7 @@ src line: 6738
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6746
+src line: 6903
 
 .
 <http://foo.bar/baz bim>
@@ -6000,7 +6119,7 @@ src line: 6746
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6754
+src line: 6911
 
 .
 <http://example.com/\[\>
@@ -6009,7 +6128,7 @@ src line: 6754
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6775
+src line: 6932
 
 .
 <foo@bar.example.com>
@@ -6018,7 +6137,7 @@ src line: 6775
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6781
+src line: 6938
 
 .
 <foo+special@Bar.baz-bar0.com>
@@ -6027,7 +6146,7 @@ src line: 6781
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6789
+src line: 6946
 
 .
 <foo\+@bar.example.com>
@@ -6036,7 +6155,7 @@ src line: 6789
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6797
+src line: 6954
 
 .
 <>
@@ -6045,7 +6164,7 @@ src line: 6797
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6803
+src line: 6960
 
 .
 <heck://bing.bong>
@@ -6054,7 +6173,7 @@ src line: 6803
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6809
+src line: 6966
 
 .
 < http://foo.bar >
@@ -6063,7 +6182,7 @@ src line: 6809
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6815
+src line: 6972
 
 .
 <foo.bar.baz>
@@ -6072,7 +6191,7 @@ src line: 6815
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6821
+src line: 6978
 
 .
 <localhost:5001/foo>
@@ -6081,7 +6200,7 @@ src line: 6821
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6827
+src line: 6984
 
 .
 http://example.com
@@ -6090,7 +6209,7 @@ http://example.com
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6833
+src line: 6990
 
 .
 foo@bar.example.com
@@ -6099,7 +6218,7 @@ foo@bar.example.com
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6913
+src line: 7070
 
 .
 <a><bab><c2c>
@@ -6108,7 +6227,7 @@ src line: 6913
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6921
+src line: 7078
 
 .
 <a/><b2/>
@@ -6117,7 +6236,7 @@ src line: 6921
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6929
+src line: 7086
 
 .
 <a  /><b2
@@ -6128,7 +6247,7 @@ data="foo" ></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6939
+src line: 7096
 
 .
 <a foo="bar" bam = 'baz <em>"</em>'
@@ -6139,7 +6258,7 @@ _boolean zoop:33=zoop:33 /></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6949
+src line: 7106
 
 .
 <33> <__>
@@ -6148,7 +6267,7 @@ src line: 6949
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6957
+src line: 7114
 
 .
 <a h*#ref="hi">
@@ -6157,7 +6276,7 @@ src line: 6957
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6965
+src line: 7122
 
 .
 <a href="hi'> <a href=hi'>
@@ -6166,7 +6285,7 @@ src line: 6965
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6973
+src line: 7130
 
 .
 < a><
@@ -6177,7 +6296,7 @@ foo&gt;&lt;bar/ &gt;</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6983
+src line: 7140
 
 .
 <a href='bar'title=title>
@@ -6186,7 +6305,7 @@ src line: 6983
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 6991
+src line: 7148
 
 .
 </a>
@@ -6197,7 +6316,7 @@ src line: 6991
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7001
+src line: 7158
 
 .
 </a href="foo">
@@ -6206,7 +6325,7 @@ src line: 7001
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7009
+src line: 7166
 
 .
 foo <!-- this is a
@@ -6217,7 +6336,7 @@ comment - with hyphen --></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7017
+src line: 7174
 
 .
 foo <!-- not a comment -- two hyphens -->
@@ -6226,7 +6345,7 @@ foo <!-- not a comment -- two hyphens -->
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7025
+src line: 7182
 
 .
 foo <!--> foo -->
@@ -6238,7 +6357,7 @@ foo <!-- foo--->
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7036
+src line: 7193
 
 .
 foo <?php echo $a; ?>
@@ -6247,7 +6366,7 @@ foo <?php echo $a; ?>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7044
+src line: 7201
 
 .
 foo <!ELEMENT br EMPTY>
@@ -6256,7 +6375,7 @@ foo <!ELEMENT br EMPTY>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7052
+src line: 7209
 
 .
 foo <![CDATA[>&<]]>
@@ -6265,7 +6384,7 @@ foo <![CDATA[>&<]]>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7060
+src line: 7217
 
 .
 <a href="&ouml;">
@@ -6274,7 +6393,7 @@ src line: 7060
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7068
+src line: 7225
 
 .
 <a href="\*">
@@ -6283,7 +6402,7 @@ src line: 7068
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7074
+src line: 7231
 
 .
 <a href="\"">
@@ -6292,7 +6411,7 @@ src line: 7074
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7087
+src line: 7244
 
 .
 foo  
@@ -6303,7 +6422,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7098
+src line: 7255
 
 .
 foo\
@@ -6314,7 +6433,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7108
+src line: 7265
 
 .
 foo       
@@ -6325,7 +6444,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7118
+src line: 7275
 
 .
 foo  
@@ -6336,7 +6455,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7126
+src line: 7283
 
 .
 foo\
@@ -6347,7 +6466,7 @@ bar</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7137
+src line: 7294
 
 .
 *foo  
@@ -6358,7 +6477,7 @@ bar</em></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7145
+src line: 7302
 
 .
 *foo\
@@ -6369,7 +6488,7 @@ bar</em></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7155
+src line: 7312
 
 .
 `code  
@@ -6379,7 +6498,7 @@ span`
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7162
+src line: 7319
 
 .
 `code\
@@ -6389,7 +6508,7 @@ span`
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7171
+src line: 7328
 
 .
 <a href="foo  
@@ -6400,7 +6519,7 @@ bar"></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7179
+src line: 7336
 
 .
 <a href="foo\
@@ -6411,7 +6530,7 @@ bar"></p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7191
+src line: 7348
 
 .
 foo\
@@ -6420,7 +6539,7 @@ foo\
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7197
+src line: 7354
 
 .
 foo  
@@ -6429,7 +6548,7 @@ foo
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7203
+src line: 7360
 
 .
 ### foo\
@@ -6438,7 +6557,7 @@ src line: 7203
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7209
+src line: 7366
 
 .
 ### foo  
@@ -6447,7 +6566,7 @@ src line: 7209
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7223
+src line: 7380
 
 .
 foo
@@ -6458,7 +6577,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7234
+src line: 7391
 
 .
 foo 
@@ -6469,7 +6588,7 @@ baz</p>
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7253
+src line: 7410
 
 .
 hello $.;'there
@@ -6478,7 +6597,7 @@ hello $.;'there
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7259
+src line: 7416
 
 .
 Foo χρῆν
@@ -6487,7 +6606,7 @@ Foo χρῆν
 .
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-src line: 7267
+src line: 7424
 
 .
 Multiple     spaces
diff --git a/test/fixtures/commonmark/spec.txt b/test/fixtures/commonmark/spec.txt
index ac47b1a..8b2c7a3 100644
--- a/test/fixtures/commonmark/spec.txt
+++ b/test/fixtures/commonmark/spec.txt
@@ -1,8 +1,8 @@
 ---
 title: CommonMark Spec
 author: John MacFarlane
-version: 0.18
-date: 2015-03-03
+version: 0.20
+date: 2015-06-08
 license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
 ...
 
@@ -192,8 +192,8 @@ an implementation without writing an abstract syntax tree renderer.
 
 This document is generated from a text file, `spec.txt`, written
 in Markdown with a small extension for the side-by-side tests.
-The script `spec2md.pl` can be used to turn `spec.txt` into pandoc
-Markdown, which can then be converted into other formats.
+The script `tools/makespec.py` can be used to convert `spec.txt` into
+HTML or CommonMark (which can then be converted into other formats).
 
 In the examples, the `→` character is used to represent tabs.
 
@@ -212,12 +212,8 @@ to a certain encoding.
 A [line](@line) is a sequence of zero or more [character]s
 followed by a [line ending] or by the end of file.
 
-A [line ending](@line-ending) is, depending on the platform, a
-newline (`U+000A`), carriage return (`U+000D`), or
-carriage return + newline.
-
-For security reasons, a conforming parser must strip or replace the
-Unicode character `U+0000`.
+A [line ending](@line-ending) is a newline (`U+000A`), carriage return
+(`U+000D`), or carriage return + newline.
 
 A line containing no characters, or a line containing only spaces
 (`U+0020`) or tabs (`U+0009`), is called a [blank line](@blank-line).
@@ -239,7 +235,10 @@ carriage return (`U+000D`), newline (`U+000A`), or form feed
 [Unicode whitespace](@unicode-whitespace) is a sequence of one
 or more [unicode whitespace character]s.
 
-A [non-space character](@non-space-character) is anything but `U+0020`.
+A [space](@space) is `U+0020`.
+
+A [non-space character](@non-space-character) is any character
+that is not a [whitespace character].
 
 An [ASCII punctuation character](@ascii-punctuation-character)
 is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
@@ -250,9 +249,10 @@ A [punctuation character](@punctuation-character) is an [ASCII
 punctuation character] or anything in
 the unicode classes `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
 
-## Tab expansion
+## Preprocessing
 
-Tabs in lines are expanded to spaces, with a tab stop of 4 characters:
+Tabs in lines are immediately expanded to [spaces][space], with a tab
+stop of 4 characters:
 
 .
 →foo→baz→→bim
@@ -270,14 +270,19 @@ Tabs in lines are expanded to spaces, with a tab stop of 4 characters:
 </code></pre>
 .
 
+## Insecure characters
+
+For security reasons, the Unicode character `U+0000` must be replaced
+with the replacement character (`U+FFFD`).
+
 # Blocks and inlines
 
 We can think of a document as a sequence of
-[blocks](@block)---structural
-elements like paragraphs, block quotations,
-lists, headers, rules, and code blocks.  Blocks can contain other
-blocks, or they can contain [inline](@inline) content:
-words, spaces, links, emphasized text, images, and inline code.
+[blocks](@block)---structural elements like paragraphs, block
+quotations, lists, headers, rules, and code blocks.  Some blocks (like
+block quotes and list items) contain other blocks; others (like
+headers and paragraphs) contain [inline](@inline) content---text,
+links, emphasized text, images, code, and so on.
 
 ## Precedence
 
@@ -528,12 +533,12 @@ consists of a string of characters, parsed as inline content, between an
 opening sequence of 1--6 unescaped `#` characters and an optional
 closing sequence of any number of `#` characters.  The opening sequence
 of `#` characters cannot be followed directly by a
-[non-space character].
-The optional closing sequence of `#`s must be preceded by a space and may be
-followed by spaces only.  The opening `#` character may be indented 0-3
-spaces.  The raw contents of the header are stripped of leading and
-trailing spaces before being parsed as inline content.  The header level
-is equal to the number of `#` characters in the opening sequence.
+[non-space character]. The optional closing sequence of `#`s must be
+preceded by a [space] and may be followed by spaces only.  The opening
+`#` character may be indented 0-3 spaces.  The raw contents of the
+header are stripped of leading and trailing spaces before being parsed
+as inline content.  The header level is equal to the number of `#`
+characters in the opening sequence.
 
 Simple headers:
 
@@ -561,16 +566,21 @@ More than six `#` characters is not a header:
 <p>####### foo</p>
 .
 
-A space is required between the `#` characters and the header's
-contents.  Note that many implementations currently do not require
-the space.  However, the space was required by the [original ATX
-implementation](http://www.aaronsw.com/2002/atx/atx.py), and it helps
-prevent things like the following from being parsed as headers:
+At least one space is required between the `#` characters and the
+header's contents, unless the header is empty.  Note that many
+implementations currently do not require the space.  However, the
+space was required by the
+[original ATX implementation](http://www.aaronsw.com/2002/atx/atx.py),
+and it helps prevent things like the following from being parsed as
+headers:
 
 .
 #5 bolt
+
+#foobar
 .
 <p>#5 bolt</p>
+<p>#foobar</p>
 .
 
 This is not a header, because the first `#` is escaped:
@@ -724,13 +734,14 @@ ATX headers can be empty:
 ## Setext headers
 
 A [setext header](@setext-header)
-consists of a line of text, containing at least one
-[non-space character],
+consists of a line of text, containing at least one [non-space character],
 with no more than 3 spaces indentation, followed by a [setext header
 underline].  The line of text must be
 one that, were it not followed by the setext header underline,
-would be interpreted as part of a paragraph:  it cannot be a code
-block, header, blockquote, horizontal rule, or list.
+would be interpreted as part of a paragraph:  it cannot be
+interpretable as a [code fence], [ATX header][ATX headers],
+[block quote][block quotes], [horizontal rule][horizontal rules],
+[list item][list items], or [HTML block][HTML blocks].
 
 A [setext header underline](@setext-header-underline) is a sequence of
 `=` characters or a sequence of `-` characters, with no more than 3
@@ -1023,7 +1034,41 @@ paragraph.)
 </code></pre>
 .
 
-The contents are literal text, and do not get parsed as Markdown:
+If there is any ambiguity between an interpretation of indentation
+as a code block and as indicating that material belongs to a [list
+item][list items], the list item interpretation takes precedence:
+
+.
+  - foo
+
+    bar
+.
+<ul>
+<li>
+<p>foo</p>
+<p>bar</p>
+</li>
+</ul>
+.
+
+.
+1.  foo
+
+    - bar
+.
+<ol>
+<li>
+<p>foo</p>
+<ul>
+<li>bar</li>
+</ul>
+</li>
+</ol>
+.
+
+
+The contents of a code block are literal text, and do not get parsed
+as Markdown:
 
 .
     <a/>
@@ -1811,7 +1856,7 @@ title], which if it is present must be separated
 from the [link destination] by [whitespace].
 No further [non-space character]s may occur on the line.
 
-A [link reference-definition]
+A [link reference definition]
 does not correspond to a structural element of a document.  Instead, it
 defines a label which can be used in [reference link]s
 and reference-style [images] elsewhere in the document.  [Link
@@ -2324,9 +2369,16 @@ foo</p>
 </blockquote>
 .
 
-Laziness only applies to lines that are continuations of
-paragraphs. Lines containing characters or indentation that indicate
-block structure cannot be lazy.
+Laziness only applies to lines that would have been continuations of
+paragraphs had they been prepended with `>`.  For example, the
+`>` cannot be omitted in the second line of
+
+``` markdown
+> foo
+> ---
+```
+
+without changing the meaning:
 
 .
 > foo
@@ -2338,6 +2390,15 @@ block structure cannot be lazy.
 <hr />
 .
 
+Similarly, if we omit the `>` in the second line of
+
+``` markdown
+> - foo
+> - bar
+```
+
+then the block quote ends after the first line:
+
 .
 > - foo
 - bar
@@ -2352,6 +2413,9 @@ block structure cannot be lazy.
 </ul>
 .
 
+For the same reason, we can't omit the `>` in front of
+subsequent lines of an indented or fenced code block:
+
 .
 >     foo
     bar
@@ -2587,7 +2651,7 @@ The following rules define [list items]:
 1.  **Basic case.**  If a sequence of lines *Ls* constitute a sequence of
     blocks *Bs* starting with a [non-space character] and not separated
     from each other by more than one blank line, and *M* is a list
-    marker *M* of width *W* followed by 0 < *N* < 5 spaces, then the result
+    marker of width *W* followed by 0 < *N* < 5 spaces, then the result
     of prepending *M* and the following spaces to the first line of
     *Ls*, and indenting subsequent lines of *Ls* by *W + N* spaces, is a
     list item with *Bs* as its contents.  The type of the list item
@@ -2726,7 +2790,7 @@ this example:
 
 Here `two` occurs in the same column as the list marker `1.`,
 but is actually contained in the list item, because there is
-sufficent indentation after the last containing blockquote marker.
+sufficient indentation after the last containing blockquote marker.
 
 The converse is also possible.  In the following example, the word `two`
 occurs far to the right of the initial text of the list item, `one`, but
@@ -2852,7 +2916,7 @@ A list item may contain any kind of block:
 2.  **Item starting with indented code.**  If a sequence of lines *Ls*
     constitute a sequence of blocks *Bs* starting with an indented code
     block and not separated from each other by more than one blank line,
-    and *M* is a list marker *M* of width *W* followed by
+    and *M* is a list marker of width *W* followed by
     one space, then the result of prepending *M* and the following
     space to the first line of *Ls*, and indenting subsequent lines of
     *Ls* by *W + 1* spaces, is a list item with *Bs* as its contents.
@@ -3001,7 +3065,7 @@ the above case:
 3.  **Item starting with a blank line.**  If a sequence of lines *Ls*
     starting with a single [blank line] constitute a (possibly empty)
     sequence of blocks *Bs*, not separated from each other by more than
-    one blank line, and *M* is a list marker *M* of width *W*,
+    one blank line, and *M* is a list marker of width *W*,
     then the result of prepending *M* to the first line of *Ls*, and
     indenting subsequent lines of *Ls* by *W + 1* spaces, is a list
     item with *Bs* as its contents.
@@ -3090,7 +3154,7 @@ A list may start or end with an empty list item:
 
 4.  **Indentation.**  If a sequence of lines *Ls* constitutes a list item
     according to rule #1, #2, or #3, then the result of indenting each line
-    of *L* by 1-3 spaces (the same for each line) also constitutes a
+    of *Ls* by 1-3 spaces (the same for each line) also constitutes a
     list item with the same contents and attributes.  If a line is
     empty, then it need not be indented.
 
@@ -3834,9 +3898,11 @@ item:
  - b
   - c
    - d
-  - e
- - f
-- g
+    - e
+   - f
+  - g
+ - h
+- i
 .
 <ul>
 <li>a</li>
@@ -3846,9 +3912,31 @@ item:
 <li>e</li>
 <li>f</li>
 <li>g</li>
+<li>h</li>
+<li>i</li>
 </ul>
 .
 
+.
+1. a
+
+  2. b
+
+    3. c
+.
+<ol>
+<li>
+<p>a</p>
+</li>
+<li>
+<p>b</p>
+</li>
+<li>
+<p>c</p>
+</li>
+</ol>
+.
+
 This is a loose list, because there is a blank line between
 two of the list items:
 
@@ -4275,19 +4363,21 @@ corresponding codepoints.
 
 [Decimal entities](@decimal-entities)
 consist of `&#` + a string of 1--8 arabic digits + `;`. Again, these
-entities need to be recognised and tranformed into their corresponding
-UTF8 codepoints. Invalid Unicode codepoints will be written as the
-"unknown codepoint" character (`0xFFFD`)
+entities need to be recognised and transformed into their corresponding
+unicode codepoints. Invalid unicode codepoints will be replaced by
+the "unknown codepoint" character (`U+FFFD`).  For security reasons,
+the codepoint `U+0000` will also be replaced by `U+FFFD`.
 
 .
-&#35; &#1234; &#992; &#98765432;
+&#35; &#1234; &#992; &#98765432; &#0;
 .
-<p># Ӓ Ϡ �</p>
+<p># Ӓ Ϡ � �</p>
 .
 
 [Hexadecimal entities](@hexadecimal-entities)
 consist of `&#` + either `X` or `x` + a string of 1-8 hexadecimal digits
-+ `;`. They will also be parsed and turned into their corresponding UTF8 values in the AST.
++ `;`. They will also be parsed and turned into the corresponding
+unicode codepoints in the AST.
 
 .
 &#X22; &#XD06; &#xcab;
@@ -4581,14 +4671,16 @@ characters that is not preceded or followed by a `_` character.
 A [left-flanking delimiter run](@left-flanking-delimiter-run) is
 a [delimiter run] that is (a) not followed by [unicode whitespace],
 and (b) either not followed by a [punctuation character], or
-preceded by [unicode whitespace] or a [punctuation character] or
-the beginning of a line.
+preceded by [unicode whitespace] or a [punctuation character].
+For purposes of this definition, the beginning and the end of
+the line count as unicode whitespace.
 
 A [right-flanking delimiter run](@right-flanking-delimiter-run) is
 a [delimiter run] that is (a) not preceded by [unicode whitespace],
 and (b) either not preceded by a [punctuation character], or
-followed by [unicode whitespace] or a [punctuation character] or
-the end of a line.
+followed by [unicode whitespace] or a [punctuation character].
+For purposes of this definition, the beginning and the end of
+the line count as unicode whitespace.
 
 Here are some examples of delimiter runs.
 
@@ -4604,20 +4696,20 @@ Here are some examples of delimiter runs.
   - right-flanking but not left-flanking:
 
     ```
-    abc***
-      abc_
+     abc***
+     abc_
     "abc"**
-     _"abc"
+    "abc"_
     ```
 
-  - Both right and right-flanking:
+  - Both left and right-flanking:
 
     ```
-    abc***def
+     abc***def
     "abc"_"def"
     ```
 
-  - Neither right nor right-flanking:
+  - Neither left nor right-flanking:
 
     ```
     abc *** def
@@ -4635,32 +4727,40 @@ are a bit more complex than the ones given here.)
 The following rules define emphasis and strong emphasis:
 
 1.  A single `*` character [can open emphasis](@can-open-emphasis)
-    iff it is part of a [left-flanking delimiter run].
+    iff (if and only if) it is part of a [left-flanking delimiter run].
 
 2.  A single `_` character [can open emphasis] iff
     it is part of a [left-flanking delimiter run]
-    and not part of a [right-flanking delimiter run].
+    and either (a) not part of a [right-flanking delimiter run]
+    or (b) part of a [right-flanking delimeter run]
+    preceded by punctuation.
 
 3.  A single `*` character [can close emphasis](@can-close-emphasis)
     iff it is part of a [right-flanking delimiter run].
 
-4.  A single `_` character [can close emphasis]
-    iff it is part of a [right-flanking delimiter run]
-    and not part of a [left-flanking delimiter run].
+4.  A single `_` character [can close 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 delimeter run]
+    followed by punctuation.
 
 5.  A double `**` [can open strong emphasis](@can-open-strong-emphasis)
     iff it is part of a [left-flanking delimiter run].
 
-6.  A double `__` [can open strong emphasis]
-    iff it is part of a [left-flanking delimiter run]
-    and not part of a [right-flanking delimiter run].
+6.  A double `__` [can open strong emphasis] iff
+    it is part of a [left-flanking delimiter run]
+    and either (a) not part of a [right-flanking delimiter run]
+    or (b) part of a [right-flanking delimeter run]
+    preceded by punctuation.
 
 7.  A double `**` [can close strong emphasis](@can-close-strong-emphasis)
     iff it is part of a [right-flanking delimiter run].
 
 8.  A double `__` [can close strong emphasis]
-    iff it is part of a [right-flanking delimiter run]
-    and not part of a [left-flanking delimiter run].
+    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 delimeter run]
+    followed by punctuation.
 
 9.  Emphasis begins with a delimiter that [can open emphasis] and ends
     with a delimiter that [can close emphasis], and that uses the same
@@ -4822,13 +4922,14 @@ aa_"bb"_cc
 <p>aa_&quot;bb&quot;_cc</p>
 .
 
-Here there is no emphasis, because the delimiter runs are
-both left- and right-flanking:
+This is emphasis, even though the opening delimiter is
+both left- and right-flanking, because it is preceded by
+punctuation:
 
 .
-"aa"_"bb"_"cc"
+foo-_(bar)_
 .
-<p>&quot;aa&quot;_&quot;bb&quot;_&quot;cc&quot;</p>
+<p>foo-<em>(bar)</em></p>
 .
 
 Rule 3:
@@ -4939,6 +5040,16 @@ _foo_bar_baz_
 <p><em>foo_bar_baz</em></p>
 .
 
+This is emphasis, even though the closing delimiter is
+both left- and right-flanking, because it is followed by
+punctuation:
+
+.
+_(bar)_.
+.
+<p><em>(bar)</em>.</p>
+.
+
 Rule 5:
 
 .
@@ -5035,6 +5146,17 @@ __foo, __bar__, baz__
 <p><strong>foo, <strong>bar</strong>, baz</strong></p>
 .
 
+This is strong emphasis, even though the opening delimiter is
+both left- and right-flanking, because it is preceded by
+punctuation:
+
+.
+foo-__(bar)__
+.
+<p>foo-<strong>(bar)</strong></p>
+.
+
+
 Rule 7:
 
 This is not strong emphasis, because the closing delimiter is preceded
@@ -5138,6 +5260,16 @@ __foo__bar__baz__
 <p><strong>foo__bar__baz</strong></p>
 .
 
+This is strong emphasis, even though the closing delimiter is
+both left- and right-flanking, because it is followed by
+punctuation:
+
+.
+__(bar)__.
+.
+<p><strong>(bar)</strong>.</p>
+.
+
 Rule 9:
 
 Any nonempty sequence of inline elements can be the contents of an
@@ -5706,7 +5838,7 @@ A [link destination](@link-destination) consists of either
   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 paretheses.
+  inside a balanced pair of unescaped parentheses.
 
 A [link title](@link-title)  consists of either
 
@@ -5839,8 +5971,8 @@ in Markdown:
 
 URL-escaping should be left alone inside the destination, as all
 URL-escaped characters are also valid URL characters. HTML entities in
-the destination will be parsed into their UTF-8 codepoints, as usual, and
-optionally URL-escaped when written as HTML.
+the destination will be parsed into the corresponding unicode
+codepoints, as usual, and optionally URL-escaped when written as HTML.
 
 .
 [link](foo%20b&auml;)
@@ -6042,6 +6174,7 @@ that [matches] a [link reference definition] elsewhere in the document.
 
 A [link label](@link-label)  begins with a left bracket (`[`) and ends
 with the first right bracket (`]`) that is not backslash-escaped.
+Between these brackets there must be at least one non-[whitespace character].
 Unescaped square bracket characters are not allowed in
 [link label]s.  A link label can have at most 999
 characters inside the square brackets.
@@ -6288,6 +6421,30 @@ backslash-escaped:
 <p><a href="/uri">foo</a></p>
 .
 
+A [link label] must contain at least one non-[whitespace character]:
+
+.
+[]
+
+[]: /uri
+.
+<p>[]</p>
+<p>[]: /uri</p>
+.
+
+.
+[
+ ]
+
+[
+ ]: /uri
+.
+<p>[
+]</p>
+<p>[
+]: /uri</p>
+.
+
 A [collapsed reference link](@collapsed-reference-link)
 consists of a [link label] that [matches] a
 [link reference definition] elsewhere in the
@@ -7215,10 +7372,10 @@ foo
 ## Soft line breaks
 
 A regular line break (not in a code span or HTML tag) that is not
-preceded by two or more spaces is parsed as a softbreak.  (A
-softbreak may be rendered in HTML either as a
-[line ending] or as a space. The result will be the same
-in browsers. In the examples here, a [line ending] will be used.)
+preceded by two or more spaces or a backslash is parsed as a
+softbreak.  (A softbreak may be rendered in HTML either as a
+[line ending] or as a space. The result will be the same in
+browsers. In the examples here, a [line ending] will be used.)
 
 .
 foo
-- 
GitLab