diff options
| author | Shulhan <ms@kilabit.info> | 2022-11-21 01:20:03 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-11-27 21:14:18 +0700 |
| commit | 5c7bfc04dc3d2cd60e84c80229804fdcd615709e (patch) | |
| tree | 63b9749699090421b55355d0f3e1f5c1b99875a1 /testdata/inline_parser/macro_pass_m_test.txt | |
| parent | 3d1caba74842d7dd0800cd0351ddb4c47364a541 (diff) | |
| download | asciidoctor-go-5c7bfc04dc3d2cd60e84c80229804fdcd615709e.tar.xz | |
all: implement inline macro for passthrough ("pass:")
The inline passthrough "pass:" can be used to control the substitutions
applied to a run of text.
Ref: https://docs.asciidoctor.org/asciidoc/latest/pass/pass-macro/
Diffstat (limited to 'testdata/inline_parser/macro_pass_m_test.txt')
| -rw-r--r-- | testdata/inline_parser/macro_pass_m_test.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testdata/inline_parser/macro_pass_m_test.txt b/testdata/inline_parser/macro_pass_m_test.txt new file mode 100644 index 0000000..248680e --- /dev/null +++ b/testdata/inline_parser/macro_pass_m_test.txt @@ -0,0 +1,32 @@ +Test macro pass with macro only. + +>>> pass_m.adoc + +pass:m[Text with footnote:id[footnote]]. + +pass:m[Text with http://127.0.0.1[HTTP URL]]. + +pass:m[Text with image:test.jpg[image]]. + +pass:m[Text with pass:[_none_] and pass:c[<_char_>]]. + +<<< pass_m.html + +<div class="paragraph"> +<p>Text with <sup class="footnote" id="_footnote_id">[<a id="_footnoteref_1" class="footnote" href="#_footnotedef_1" title="View footnote.">1</a>]</sup>.</p> +</div> +<div class="paragraph"> +<p>Text with <a href="http://127.0.0.1">HTTP URL</a>.</p> +</div> +<div class="paragraph"> +<p>Text with <span class="image"><img src="test.jpg" alt="image"></span>.</p> +</div> +<div class="paragraph"> +<p>Text with pass:[_none_] and pass:c[<_char_>].</p> +</div> +<div id="footnotes"> +<hr> +<div class="footnote" id="_footnotedef_1"> +<a href="#_footnoteref_1">1</a>. footnote +</div> +</div> |
