summaryrefslogtreecommitdiffstats
path: root/t/fmt/asciidoc/StyleMacro.trans
diff options
context:
space:
mode:
Diffstat (limited to 't/fmt/asciidoc/StyleMacro.trans')
-rw-r--r--t/fmt/asciidoc/StyleMacro.trans52
1 files changed, 52 insertions, 0 deletions
diff --git a/t/fmt/asciidoc/StyleMacro.trans b/t/fmt/asciidoc/StyleMacro.trans
new file mode 100644
index 0000000..d33cc9e
--- /dev/null
+++ b/t/fmt/asciidoc/StyleMacro.trans
@@ -0,0 +1,52 @@
+TEST MACRO AND STYLES
+===========================================
+
+STYLES
+------
+
+[quote, "LOREM IPSUM", "DOLOR SIT(1991)"]
+LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISICING ELIT, SED DO EIUSMOD TEMPOR INCIDIDUNT UT LABORE ET DOLORE MAGNA ALIQUA. UT ENIM AD MINIM VENIAM, QUIS NOSTRUD EXERCITATION ULLAMCO LABORIS NISI UT ALIQUIP EX EA COMMODO CONSEQUAT. DUIS AUTE IRURE DOLOR IN REPREHENDERIT IN VOLUPTATE VELIT ESSE CILLUM DOLORE EU FUGIAT NULLA PARIATUR. EXCEPTEUR SINT OCCAECAT CUPIDATAT NON PROIDENT, SUNT IN CULPA QUI OFFICIA DESERUNT MOLLIT ANIM ID EST LABORUM.
+
+[verse, "LOREM IPSUM VERSE", "DOLOR SIT VERSE"]
+LOREM IPSUM DOLOR SIT AMET,
+CONSECTETUR ADIPISICING ELIT,
+SED DO EIUSMOD TEMPOR INCIDIDUNT
+UT LABORE ET DOLORE MAGNA ALIQUA.
+
+
+[verse, "LOREM IPSUM VERSE2", "DOLOR SIT VERSE2"]
+____
+LOREM IPSUM DOLOR SIT AMET,
+CONSECTETUR ADIPISICING ELIT,
+
+SED DO EIUSMOD TEMPOR INCIDIDUNT
+UT LABORE ET DOLORE MAGNA ALIQUA.
+____
+
+[icon="FOO.PNG,", caption="Lorem ipsum"]
+LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISICING ELIT, SED DO EIUSMOD TEMPOR INCIDIDUNT UT LABORE ET DOLORE MAGNA ALIQUA.
+
+BLOCK MACROS
+------------
+
+PARAGRAPH BEFORE BLOCKIMAGE
+image::FOO.PNG["BLOCK IMAGE ALT"]
+PARAGRAPH AFTER BLOCKIMAGE
+
+image::FOO.PNG["BLOCK IMAGE WITH TITLE", title="MY IMAGE TITLE"]
+
+.EXTERNAL IMAGE TITLE
+image::FOO.PNG["BLOCK IMAGE WITH EXTERNAL TITLE"]
+
+image::FOO.PNG[title="IMAGE WITH TITLE BUT WITHOUT ALT-TEXT"]
+
+BLOCK IMAGE MACRO WITHOUT ALT TEXT:
+image::FOO.PNG[]
+
+ifeval::[42 == 42]
+// Empty macro target:
+endif::[]
+
+ifeval::["{foo}" == "bar"]
+include::{foo-path}bar.adoc[leveloffset=+1, lines=7..21;32..-1]
+endif::[]