aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.adoc
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-11-03 01:47:23 +0700
committerShulhan <m.shulhan@gmail.com>2020-11-03 01:47:23 +0700
commit9f65c08dcc78a87900580058a1364b151df90359 (patch)
treede93363ceab416d35dc6c2d46005df707a2062c6 /testdata/test.adoc
parent604024c9f55e083d0d3b13469e0ac397c59a07e9 (diff)
downloadasciidoctor-go-9f65c08dcc78a87900580058a1364b151df90359.tar.xz
all: implement parser for customizing the cross reference text
The cross reference text can be customized using attribute name "reftext" with value is the alternative text to be displayed on anchor.
Diffstat (limited to 'testdata/test.adoc')
-rw-r--r--testdata/test.adoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/testdata/test.adoc b/testdata/test.adoc
index 7e2e27c..24e5ef6 100644
--- a/testdata/test.adoc
+++ b/testdata/test.adoc
@@ -506,7 +506,7 @@ mailto:ms@kilabit.info[Mail to me].
Relative file link:test.html[test.html].
-
+[reftext="This is anchor"]
== Anchors
[[notice]]
@@ -539,6 +539,8 @@ Cross reference with ID <<_anchors>>.
Cross reference with block title <<Anchors>>.
+Cross reference with reftext <<This is anchor>>.
+
Cross reference with custom label <<_anchors,custom anchor label>>.