diff options
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 | ||||
-rw-r--r-- | test/Tests/Writers/LaTeX.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index fd71e1ad2..f845d7444 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -1010,7 +1010,7 @@ sectionHeader classes ident level lst = do -- see http://tex.stackexchange.com/questions/169830/ else empty lab <- labelFor ident - let star = if unnumbered && level' < 4 then text "*" else empty + let star = if unnumbered then text "*" else empty let stuffing = star <> optional <> contents stuffing' <- hypertarget True ident $ text ('\\':sectionType) <> stuffing <> lab diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs index 4bf25fb1c..44e23d48e 100644 --- a/test/Tests/Writers/LaTeX.hs +++ b/test/Tests/Writers/LaTeX.hs @@ -170,7 +170,7 @@ tests = [ testGroup "code blocks" , "\\addcontentsline{toc}{subsection}{header4}\n" , "\\subsubsection*{header5}" , "\\addcontentsline{toc}{subsubsection}{header5}\n" - , "\\paragraph{header6}" + , "\\paragraph*{header6}" , "\\addcontentsline{toc}{paragraph}{header6}" ] ] |