summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-02-19 11:26:57 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-02-19 11:26:57 -0800
commit54b001aa193ace3d6b0a30f8456853d0d2be38c2 (patch)
tree17bed20118b95e51f5d876b6189a95530219eac8 /test/command
parenta6d85a0c983fa907f700f828881400af536ea01d (diff)
Org reader/writer: support admonitions.
Closes #9475.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/9475.md102
1 files changed, 102 insertions, 0 deletions
diff --git a/test/command/9475.md b/test/command/9475.md
new file mode 100644
index 000000000..c3f355f3b
--- /dev/null
+++ b/test/command/9475.md
@@ -0,0 +1,102 @@
+```
+% pandoc -f org -t native
+#+begin_note
+Useful note.
+#+end_note
+
+#+begin_warning
+Be careful!
+#+end_warning
+
+#+begin_tip
+Try this...
+#+end_tip
+
+#+begin_caution
+Caution
+#+end_caution
+
+#+name: foo
+#+begin_important
+Important
+#+end_important
+^D
+[ Div
+ ( "" , [ "note" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Note" ] ]
+ , Para [ Str "Useful" , Space , Str "note." ]
+ ]
+, Div
+ ( "" , [ "warning" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Warning" ] ]
+ , Para [ Str "Be" , Space , Str "careful!" ]
+ ]
+, Div
+ ( "" , [ "tip" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Tip" ] ]
+ , Para [ Str "Try" , Space , Str "this\8230" ]
+ ]
+, Div
+ ( "" , [ "caution" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Caution" ] ]
+ , Para [ Str "Caution" ]
+ ]
+, Div
+ ( "foo" , [ "important" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Important" ] ]
+ , Para [ Str "Important" ]
+ ]
+]
+
+```
+
+```
+% pandoc -f native -t org
+[ Div
+ ( "" , [ "note" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Note" ] ]
+ , Para [ Str "Useful" , Space , Str "note." ]
+ ]
+, Div
+ ( "" , [ "warning" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Warning" ] ]
+ , Para [ Str "Be" , Space , Str "careful!" ]
+ ]
+, Div
+ ( "" , [ "tip" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Tip" ] ]
+ , Para [ Str "Try" , Space , Str "this\8230" ]
+ ]
+, Div
+ ( "" , [ "caution" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Caution" ] ]
+ , Para [ Str "Caution" ]
+ ]
+, Div
+ ( "foo" , [ "important" ] , [] )
+ [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Important" ] ]
+ , Para [ Str "Important" ]
+ ]
+]
+^D
+#+begin_note
+Useful note.
+#+end_note
+
+#+begin_warning
+Be careful!
+#+end_warning
+
+#+begin_tip
+Try this...
+#+end_tip
+
+#+begin_caution
+Caution
+#+end_caution
+
+#+name: foo
+#+begin_important
+Important
+#+end_important
+```