aboutsummaryrefslogtreecommitdiff
path: root/tests/pandoc/citeproc-bug.md
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-09 12:44:09 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-09 12:44:09 +0100
commit3df1d1888cbf59551420d040bc7632e63ea36842 (patch)
treeaf58ca3571e52f2842264a8a1272b5db6cf3ce3a /tests/pandoc/citeproc-bug.md
parent6ec92e6732a7067c3aec5b56806f3605b8b199e8 (diff)
downloadbookup-3df1d1888cbf59551420d040bc7632e63ea36842.tar.gz
bookup-3df1d1888cbf59551420d040bc7632e63ea36842.tar.bz2
Feat: tests folder
Diffstat (limited to 'tests/pandoc/citeproc-bug.md')
-rw-r--r--tests/pandoc/citeproc-bug.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/pandoc/citeproc-bug.md b/tests/pandoc/citeproc-bug.md
new file mode 100644
index 0000000..e6dd452
--- /dev/null
+++ b/tests/pandoc/citeproc-bug.md
@@ -0,0 +1,67 @@
+---
+ title: "Test"
+ biblio-style: apalike
+ link-citations: true
+ references:
+ - type: article-journal
+ id: test
+ author:
+ - family: Doe
+ given: J.
+ issued:
+ date-parts:
+ - - 1900
+ - 1
+ - 1
+ title: 'Test article'
+ title-short: Test
+ container-title: Nurture
+ volume: 1
+ issue: 1
+ page: 1-10
+
+---
+
+# Pandoc issues with Citeproc
+
+## About
+
+This shows where citations are not properly converted by Pandoc/Citeproc.
+
+## How to use
+
+Compile with:
+
+ pandoc -i citeproc-bug.md -t latex -o citeproc-bug.md --citeproc
+
+## Tests
+
+Normal: @test
+
+Brackets syntax: [@test]
+
+Brace syntax: @{test}
+
+Inside braces: {@test}
+
+Braces within braces: {@{test}}
+
+Escaped braces: \{@test\}
+
+Slash: \ @test
+
+LaTeX block: \emph{@test}
+
+LaTeX block 2: \emph{Reference to @test inside braces}
+
+LaTeX block with escaped braces: \emph\{@test\}
+
+LaTeX block with braces within braces: \emph{@{test}}
+
+LaTeX protect block: \protect\emph{@test}
+
+Preformatted:
+
+ > @test
+ >
+ > \emph{@test}