diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-11-03 01:47:23 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-11-03 01:47:23 +0700 |
| commit | 9f65c08dcc78a87900580058a1364b151df90359 (patch) | |
| tree | de93363ceab416d35dc6c2d46005df707a2062c6 /testdata/test.adoc | |
| parent | 604024c9f55e083d0d3b13469e0ac397c59a07e9 (diff) | |
| download | asciidoctor-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.adoc | 4 |
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>>. |
