diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-10-31 04:01:41 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-10-31 04:01:41 +0700 |
| commit | 45e1e54c75bda5591cf02ea8bc899a8150b3dcfc (patch) | |
| tree | 2119c2076af4dc4d738064946a3e7995538218bc /testdata | |
| parent | ee78188ea91964725f58cc3d8c472cc9ab2f5c36 (diff) | |
| download | asciidoctor-go-45e1e54c75bda5591cf02ea8bc899a8150b3dcfc.tar.xz | |
all: implement parser for block anchor and inline anchor
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/got.test.html | 48 | ||||
| -rw-r--r-- | testdata/test.adoc | 24 | ||||
| -rw-r--r-- | testdata/test.html | 51 |
3 files changed, 121 insertions, 2 deletions
diff --git a/testdata/got.test.html b/testdata/got.test.html index b286298..e58cb54 100644 --- a/testdata/got.test.html +++ b/testdata/got.test.html @@ -64,6 +64,13 @@ <li><a href="#_horizontal_rules">Horizontal rules</a></li> <li><a href="#_page_break">Page break</a></li> <li><a href="#_urls">URLs</a></li> +<li><a href="#_anchors">Anchors</a> +<ul class="sectlevel2"> +<li><a href="#version-4_9">Version 4.9 </a></li> +<li><a href="#version-4_10">Version 4.10 </a></li> +<li><a href="#which-one">Version 4.11 </a></li> +</ul> +</li> <li><a href="#_block_images">Block images</a> <ul class="sectlevel2"> <li><a href="#_float_group">Float group</a></li> @@ -1249,6 +1256,45 @@ Hard drive </div> </div> <div class="sect1"> +<h2 id="_anchors">Anchors</h2> +<div class="sectionbody"> +<div id="notice" class="paragraph"> +<p>This paragraph gets a lot of attention.</p> +</div> +<div id="notice_2" class="paragraph"> +<p>This paragraph gets a lot of attention.</p> +</div> +<div class="paragraph"> +<p><a id="bookmark-a"></a>Inline anchors make arbitrary content referenceable.</p> +</div> +<div class="paragraph"> +<p><span id="bookmark-b">Inline <em>anchors</em> can be applied to a phrase like this one.</span></p> +</div> +<div class="ulist"> +<ul> +<li> +<p>First item</p> +</li> +<li> +<p><a id="step2"></a>Second item</p> +</li> +<li> +<p>Third item</p> +</li> +</ul> +</div> +<div class="sect2"> +<h3 id="version-4_9">Version 4.9 </h3> +</div> +<div class="sect2"> +<h3 id="version-4_10"><a id="current"></a>Version 4.10 </h3> +</div> +<div class="sect2"> +<h3 id="which-one">Version 4.11 <a id="version-4_11"></a></h3> +</div> +</div> +</div> +<div class="sect1"> <h2 id="_block_images">Block images</h2> <div class="sectionbody"> <div class="imageblock"> @@ -1829,7 +1875,7 @@ and then moves on.</pre> <div id="footer"> <div id="footer-text"> Version 1.1.1<br> -Last updated 2020-10-30 03:55:01 +0700 +Last updated 2020-10-30 21:31:38 +0700 </div> </div> </body> diff --git a/testdata/test.adoc b/testdata/test.adoc index 33c43eb..4cf0dca 100644 --- a/testdata/test.adoc +++ b/testdata/test.adoc @@ -506,6 +506,30 @@ mailto:ms@kilabit.info[Mail to me]. Relative file link:test.html[test.html]. + +== Anchors + +[[notice]] +This paragraph gets a lot of attention. + +[#notice_2] +This paragraph gets a lot of attention. + +[[bookmark-a]]Inline anchors make arbitrary content referenceable. + +[#bookmark-b]#Inline _anchors_ can be applied to a phrase like this one.# + +* First item +* [[step2]]Second item +* Third item + +=== Version 4.9 [[version-4_9]] + +=== [[current]]Version 4.10 [[version-4_10]] + +[#which-one] +=== Version 4.11 [[version-4_11]] + == Block images image::sunset.jpg[] diff --git a/testdata/test.html b/testdata/test.html index 0d35c48..9858551 100644 --- a/testdata/test.html +++ b/testdata/test.html @@ -63,6 +63,13 @@ <li><a href="#_horizontal_rules">Horizontal rules</a></li> <li><a href="#_page_break">Page break</a></li> <li><a href="#_urls">URLs</a></li> +<li><a href="#_anchors">Anchors</a> +<ul class="sectlevel2"> +<li><a href="#version-4_9">Version 4.9</a></li> +<li><a href="#version-4_10">Version 4.10</a></li> +<li><a href="#which-one">Version 4.11 </a></li> +</ul> +</li> <li><a href="#_block_images">Block images</a> <ul class="sectlevel2"> <li><a href="#_float_group">Float group</a></li> @@ -1250,6 +1257,48 @@ Hard drive </div> </div> <div class="sect1"> +<h2 id="_anchors">Anchors</h2> +<div class="sectionbody"> +<div id="notice" class="paragraph"> +<p>This paragraph gets a lot of attention.</p> +</div> +<div id="notice_2" class="paragraph"> +<p>This paragraph gets a lot of attention.</p> +</div> +<div class="paragraph"> +<p><a id="bookmark-a"></a>Inline anchors make arbitrary content referenceable.</p> +</div> +<div class="paragraph"> +<p><span id="bookmark-b">Inline <em>anchors</em> can be applied to a phrase like this one.</span></p> +</div> +<div class="ulist"> +<ul> +<li> +<p>First item</p> +</li> +<li> +<p><a id="step2"></a>Second item</p> +</li> +<li> +<p>Third item</p> +</li> +</ul> +</div> +<div class="sect2"> +<h3 id="version-4_9">Version 4.9</h3> + +</div> +<div class="sect2"> +<h3 id="version-4_10"><a id="current"></a>Version 4.10</h3> + +</div> +<div class="sect2"> +<h3 id="which-one">Version 4.11 <a id="version-4_11"></a></h3> + +</div> +</div> +</div> +<div class="sect1"> <h2 id="_block_images">Block images</h2> <div class="sectionbody"> <div class="imageblock"> @@ -1826,7 +1875,7 @@ and then moves on.</pre> <div id="footer"> <div id="footer-text"> Version 1.1.1<br> -Last updated 2020-10-30 03:55:00 +0700 +Last updated 2020-10-30 21:31:37 +0700 </div> </div> </body> |
