diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-12-09 14:15:27 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-12-09 14:15:27 +0700 |
| commit | 6ce7e96fac3e05e8e823f6001e030d8e5108aed0 (patch) | |
| tree | 424392888804a5a01b0e843989b23bc53ffbb5db /testdata | |
| parent | 8f50b1676835ecf4d7d43196e95c05abe98c3ac7 (diff) | |
| download | asciidoctor-go-6ce7e96fac3e05e8e823f6001e030d8e5108aed0.tar.xz | |
all: fix parsing description list with link
Previously, the following description label will not work,
https://somewhere[A]:: B
This changes fix this issue.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/got.test.html | 53 | ||||
| -rw-r--r-- | testdata/test.adoc | 19 | ||||
| -rw-r--r-- | testdata/test.html | 53 |
3 files changed, 66 insertions, 59 deletions
diff --git a/testdata/got.test.html b/testdata/got.test.html index 24008f7..a5ca6ec 100644 --- a/testdata/got.test.html +++ b/testdata/got.test.html @@ -67,17 +67,7 @@ </ul> </li> <li><a href="#_mixed_list">16. Mixed list</a></li> -<li><a href="#_description_list">17. Description list</a> -<ul class="sectlevel2"> -<li><a href="#_with_horizontal">17.1. With [horizontal]</a></li> -<li><a href="#_with_title">17.2. With title</a></li> -<li><a href="#_indented_with_space">17.3. Indented with space</a></li> -<li><a href="#_with">17.4. With "+"</a></li> -<li><a href="#_mixed_with_list">17.5. Mixed with list</a></li> -<li><a href="#_spread">17.6. Spread</a></li> -<li><a href="#_mixed_with_ordered_and_unordered_list">17.7. Mixed with ordered and unordered list</a></li> -</ul> -</li> +<li><a href="#_description_list">17. Description list</a></li> <li><a href="#_question_and_answers">18. Question and Answers</a></li> <li><a href="#_table">19. Table</a> <ul class="sectlevel2"> @@ -1152,8 +1142,9 @@ This line separated by comment.</p> </dd> </dl> </div> -<div class="sect2"> -<h3 id="_with_horizontal"><a class="anchor" href="#_with_horizontal"></a><a class="link" href="#_with_horizontal">17.1. With [horizontal]</a></h3> +<div class="paragraph"> +<p>With <code>[horizontal]</code> style,</p> +</div> <div class="hdlist"> <table> <tr> @@ -1174,9 +1165,9 @@ Hard drive </tr> </table> </div> +<div class="paragraph"> +<p>With title,</p> </div> -<div class="sect2"> -<h3 id="_with_title"><a class="anchor" href="#_with_title"></a><a class="link" href="#_with_title">17.2. With title</a></h3> <div class="dlist"> <div class="title">A title</div> <dl> @@ -1190,9 +1181,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Indented with space</p> </div> -<div class="sect2"> -<h3 id="_indented_with_space"><a class="anchor" href="#_indented_with_space"></a><a class="link" href="#_indented_with_space">17.3. Indented with space</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">CPU</dt> @@ -1205,9 +1196,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>With continuation "+",</p> </div> -<div class="sect2"> -<h3 id="_with"><a class="anchor" href="#_with"></a><a class="link" href="#_with">17.4. With "+"</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">CPU</dt> @@ -1225,9 +1216,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Mixed with list,</p> </div> -<div class="sect2"> -<h3 id="_mixed_with_list"><a class="anchor" href="#_mixed_with_list"></a><a class="link" href="#_mixed_with_list">17.5. Mixed with list</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Dairy</dt> @@ -1265,9 +1256,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Spread,</p> </div> -<div class="sect2"> -<h3 id="_spread"><a class="anchor" href="#_spread"></a><a class="link" href="#_spread">17.6. Spread</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Dairy</dt> @@ -1305,9 +1296,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Mixed with ordered and unordered list,</p> </div> -<div class="sect2"> -<h3 id="_mixed_with_ordered_and_unordered_list"><a class="anchor" href="#_mixed_with_ordered_and_unordered_list"></a><a class="link" href="#_mixed_with_ordered_and_unordered_list">17.7. Mixed with ordered and unordered list</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Operating Systems</dt> @@ -1395,6 +1386,16 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>With link on label,</p> +</div> +<div class="dlist"> +<dl> +<dt class="hdlist1"><a href="https://pkg.go.dev/git.sr.ht/~shulhan/asciidoctor-go">asciidoctor-go</a></dt> +<dd> +<p>Native asciidoc markup language for Go.</p> +</dd> +</dl> </div> </div> </div> @@ -2878,7 +2879,7 @@ this sidebar.</p> <div id="footer"> <div id="footer-text"> 1.1.1<br> -Last updated 2020-12-08 00:05:36 +0700 +Last updated 2020-12-09 14:00:11 +0700 </div> </div> </body> diff --git a/testdata/test.adoc b/testdata/test.adoc index 2e78ee7..1a841df 100644 --- a/testdata/test.adoc +++ b/testdata/test.adoc @@ -480,24 +480,24 @@ toc::[] `CPU`:: The brain of the computer. Hard drive:: Permanent storage for operating system and/or user files. -=== With [horizontal] +With `[horizontal]` style, [horizontal] CPU:: The brain of the computer. Hard drive:: Permanent storage for operating system and/or user files. -=== With title +With title, .A title CPU:: The brain of the computer. Hard drive:: Permanent storage for operating system and/or user files. -=== Indented with space +Indented with space CPU:: The brain of the computer. Hard drive:: Permanent storage for operating system and/or user files. -=== With "+" +With continuation "+", CPU:: + @@ -507,7 +507,7 @@ Permanent storage for operating system and/or + user files. -=== Mixed with list +Mixed with list, Dairy:: * Milk @@ -517,7 +517,7 @@ Bakery:: Produce:: * Bananas -=== Spread +Spread, Dairy:: @@ -532,7 +532,7 @@ Produce:: * Bananas -=== Mixed with ordered and unordered list +Mixed with ordered and unordered list, Operating Systems:: Linux::: @@ -553,6 +553,11 @@ Cloud Providers:: . Amazon EC2 . Rackspace +With link on label, + +https://pkg.go.dev/git.sr.ht/~shulhan/asciidoctor-go[asciidoctor-go]:: + Native asciidoc markup language for Go. + == Question and Answers diff --git a/testdata/test.html b/testdata/test.html index d48b96c..d00d183 100644 --- a/testdata/test.html +++ b/testdata/test.html @@ -67,17 +67,7 @@ </ul> </li> <li><a href="#_mixed_list">16. Mixed list</a></li> -<li><a href="#_description_list">17. Description list</a> -<ul class="sectlevel2"> -<li><a href="#_with_horizontal">17.1. With [horizontal]</a></li> -<li><a href="#_with_title">17.2. With title</a></li> -<li><a href="#_indented_with_space">17.3. Indented with space</a></li> -<li><a href="#_with">17.4. With "+"</a></li> -<li><a href="#_mixed_with_list">17.5. Mixed with list</a></li> -<li><a href="#_spread">17.6. Spread</a></li> -<li><a href="#_mixed_with_ordered_and_unordered_list">17.7. Mixed with ordered and unordered list</a></li> -</ul> -</li> +<li><a href="#_description_list">17. Description list</a></li> <li><a href="#_question_and_answers">18. Question and Answers</a></li> <li><a href="#_table">19. Table</a> <ul class="sectlevel2"> @@ -1155,8 +1145,9 @@ This line separated by comment.</p> </dd> </dl> </div> -<div class="sect2"> -<h3 id="_with_horizontal"><a class="anchor" href="#_with_horizontal"></a><a class="link" href="#_with_horizontal">17.1. With [horizontal]</a></h3> +<div class="paragraph"> +<p>With <code>[horizontal]</code> style,</p> +</div> <div class="hdlist"> <table> <tr> @@ -1177,9 +1168,9 @@ Hard drive </tr> </table> </div> +<div class="paragraph"> +<p>With title,</p> </div> -<div class="sect2"> -<h3 id="_with_title"><a class="anchor" href="#_with_title"></a><a class="link" href="#_with_title">17.2. With title</a></h3> <div class="dlist"> <div class="title">A title</div> <dl> @@ -1193,9 +1184,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Indented with space</p> </div> -<div class="sect2"> -<h3 id="_indented_with_space"><a class="anchor" href="#_indented_with_space"></a><a class="link" href="#_indented_with_space">17.3. Indented with space</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">CPU</dt> @@ -1208,9 +1199,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>With continuation "+",</p> </div> -<div class="sect2"> -<h3 id="_with"><a class="anchor" href="#_with"></a><a class="link" href="#_with">17.4. With "+"</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">CPU</dt> @@ -1228,9 +1219,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Mixed with list,</p> </div> -<div class="sect2"> -<h3 id="_mixed_with_list"><a class="anchor" href="#_mixed_with_list"></a><a class="link" href="#_mixed_with_list">17.5. Mixed with list</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Dairy</dt> @@ -1268,9 +1259,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Spread,</p> </div> -<div class="sect2"> -<h3 id="_spread"><a class="anchor" href="#_spread"></a><a class="link" href="#_spread">17.6. Spread</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Dairy</dt> @@ -1308,9 +1299,9 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>Mixed with ordered and unordered list,</p> </div> -<div class="sect2"> -<h3 id="_mixed_with_ordered_and_unordered_list"><a class="anchor" href="#_mixed_with_ordered_and_unordered_list"></a><a class="link" href="#_mixed_with_ordered_and_unordered_list">17.7. Mixed with ordered and unordered list</a></h3> <div class="dlist"> <dl> <dt class="hdlist1">Operating Systems</dt> @@ -1398,6 +1389,16 @@ Hard drive </dd> </dl> </div> +<div class="paragraph"> +<p>With link on label,</p> +</div> +<div class="dlist"> +<dl> +<dt class="hdlist1"><a href="https://pkg.go.dev/git.sr.ht/~shulhan/asciidoctor-go">asciidoctor-go</a></dt> +<dd> +<p>Native asciidoc markup language for Go.</p> +</dd> +</dl> </div> </div> </div> @@ -2875,7 +2876,7 @@ this sidebar.</p> <div id="footer"> <div id="footer-text"> 1.1.1<br> -Last updated 2020-12-08 00:05:35 +0700 +Last updated 2020-12-09 14:00:11 +0700 </div> </div> </body> |
