aboutsummaryrefslogtreecommitdiff
path: root/test/command/latex-color.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/latex-color.md')
-rw-r--r--test/command/latex-color.md126
1 files changed, 100 insertions, 26 deletions
diff --git a/test/command/latex-color.md b/test/command/latex-color.md
index 9fd2585a3..97d7f84c0 100644
--- a/test/command/latex-color.md
+++ b/test/command/latex-color.md
@@ -4,21 +4,40 @@
% pandoc -f latex -t native
Hello \textcolor{red}{World}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: red")]) [Str "World"]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "World" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\textcolor{red}{Hello} World
^D
-[Para [Span ("",[],[("style","color: red")]) [Str "Hello"],Space,Str "World"]]
+[ Para
+ [ Span
+ ( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "Hello" ]
+ , Space
+ , Str "World"
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \textcolor{blue}{\textbf{World}}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: blue")]) [Strong [Str "World"]]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ ]
+]
```
@@ -26,7 +45,15 @@ Hello \textcolor{blue}{\textbf{World}}
% pandoc -f latex -t native
Hello \textcolor{blue}{\textbf{World}}.
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: blue")]) [Strong [Str "World"]],Str "."]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ , Str "."
+ ]
+]
```
```
@@ -38,10 +65,14 @@ Hello \textcolor{blue}{\textbf{World}}.
\end{itemize}
}
^D
-[Div ("",[],[("style","color: orange")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]]
+[ Div
+ ( "" , [] , [ ( "style" , "color: orange" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+]
```
```
@@ -53,11 +84,16 @@ Hello \textcolor{blue}{\textbf{World}}.
\end{itemize}
} some more text
^D
-[Div ("",[],[("style","color: blue")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]
-,Para [Str "some",Space,Str "more",Space,Str "text"]]
+[ Div
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+, Para
+ [ Str "some" , Space , Str "more" , Space , Str "text" ]
+]
```
# `\colorbox{}{}`
@@ -67,28 +103,57 @@ Hello \textcolor{blue}{\textbf{World}}.
% pandoc -f latex -t native
Hello \colorbox{red}{World}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: red")]) [Str "World"]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: red" ) ] )
+ [ Str "World" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\colorbox{red}{Hello} World
^D
-[Para [Span ("",[],[("style","background-color: red")]) [Str "Hello"],Space,Str "World"]]
+[ Para
+ [ Span
+ ( "" , [] , [ ( "style" , "background-color: red" ) ] )
+ [ Str "Hello" ]
+ , Space
+ , Str "World"
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \colorbox{blue}{\textbf{World}}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: blue")]) [Strong [Str "World"]]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \colorbox{blue}{\textbf{World}}.
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: blue")]) [Strong [Str "World"]],Str "."]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ , Str "."
+ ]
+]
```
```
@@ -102,10 +167,14 @@ Hello \colorbox{blue}{\textbf{World}}.
\end{minipage}
}
^D
-[Div ("",[],[("style","background-color: orange")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]]
+[ Div
+ ( "" , [] , [ ( "style" , "background-color: orange" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+]
```
```
@@ -119,9 +188,14 @@ Hello \colorbox{blue}{\textbf{World}}.
\end{minipage}
} some more text
^D
-[Div ("",[],[("style","background-color: blue")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]
-,Para [Str "some",Space,Str "more",Space,Str "text"]]
+[ Div
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+, Para
+ [ Str "some" , Space , Str "more" , Space , Str "text" ]
+]
```