aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-08-10 10:39:30 +0200
committerJohn MacFarlane <[email protected]>2025-08-10 18:36:52 -0700
commita5312c0828bb922174669a9d8fe9c6f5fc8a4cdc (patch)
tree24b393e7f9a851eb1a9b8b49891679c6b278c278
parent550fe44f950543715f591dc6bb8987747dd1d44d (diff)
LaTeX reader: parse `\minisec` as unlisted level 6 headings.
Closes: #10635
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
-rw-r--r--test/command/10635.md24
2 files changed, 25 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index c1d5896e3..fbc66288a 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -963,6 +963,7 @@ blockCommands = M.fromList
, ("paragraph*", section ("",["unnumbered"],[]) 4)
, ("subparagraph", section nullAttr 5)
, ("subparagraph*", section ("",["unnumbered"],[]) 5)
+ , ("minisec", section ("",["unnumbered","unlisted"],[]) 6) -- from KOMA
-- beamer slides
, ("frametitle", section nullAttr 3)
, ("framesubtitle", section nullAttr 4)
diff --git a/test/command/10635.md b/test/command/10635.md
new file mode 100644
index 000000000..62f6375e3
--- /dev/null
+++ b/test/command/10635.md
@@ -0,0 +1,24 @@
+# Support for KOMA's `\minisec` command
+
+```
+% pandoc -f latex -t native
+\minisec{Montage}
+Zunächst suche man das Mauseloch.
+^D
+[ Header
+ 6
+ ( "montage" , [ "unnumbered" , "unlisted" ] , [] )
+ [ Str "Montage" ]
+, Para
+ [ Str "Zun\228chst"
+ , Space
+ , Str "suche"
+ , Space
+ , Str "man"
+ , Space
+ , Str "das"
+ , Space
+ , Str "Mauseloch."
+ ]
+]
+```