diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-12-10 01:33:42 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-12-10 01:33:42 +0700 |
| commit | 94351579ec8da8c9deeca17091c7362a594f90b4 (patch) | |
| tree | 7269bd05b6f277a0d10fa72b464dd5b1a8c3b8f0 /testdata/test.adoc | |
| parent | 85e1837b0913e8c1108dbcbcd58930898998539f (diff) | |
| download | asciidoctor-go-94351579ec8da8c9deeca17091c7362a594f90b4.tar.xz | |
all: preparing implementation for "include" directive
There are basic things that need to be done before we can implement
the "include" directive, especially on how to embed the content of
included file into the content of current document.
Diffstat (limited to 'testdata/test.adoc')
| -rw-r--r-- | testdata/test.adoc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testdata/test.adoc b/testdata/test.adoc index 1a841df..1a72186 100644 --- a/testdata/test.adoc +++ b/testdata/test.adoc @@ -961,6 +961,19 @@ Cross reference with reftext <<This is anchor>>. Cross reference with custom label <<_anchors,custom anchor label>>. +== Include + +:includedir: _includes +:sourcedir: .. + +include::{includedir}/fragment1.adoc[] + +[source,go] +---- +include::{sourcedir}/anchor.go[] +---- + + == Images === Block images |
