aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-05-15 11:37:50 -0700
committerJohn MacFarlane <[email protected]>2025-05-15 11:37:50 -0700
commitcf795b0cf5bb76ced10578385e82acc6e327efcb (patch)
tree037b0c282d10c7f8586ff2a3ecd104d9b217c390 /src
parent2918ac41b39a1828b7bf30391a7fca4d06a21134 (diff)
Fix context writer/template to produce tagged PDFs.
As before, the `tagging` extension must be enabled. We now add the command that tells ConTeXt to start tagging. Closes #10846.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/ConTeXt.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs
index 9e35c803b..65a0fa9dd 100644
--- a/src/Text/Pandoc/Writers/ConTeXt.hs
+++ b/src/Text/Pandoc/Writers/ConTeXt.hs
@@ -117,6 +117,7 @@ pandocToConTeXt options (Pandoc meta blocks) = do
"subsubsubsection","subsubsubsubsection"])
$ defField "body" main
$ defField "layout" layoutFromMargins
+ $ defField "tagging" (isEnabled Ext_tagging options)
$ defField "number-sections" (writerNumberSections options)
$ defField "csl-refs" (stHasCslRefs st)
$ defField "csl-hanging-indent" (stCslHangingIndent st)