diff options
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Slides.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Slides.hs b/src/Text/Pandoc/Slides.hs index ba68bbd67..1df556d38 100644 --- a/src/Text/Pandoc/Slides.hs +++ b/src/Text/Pandoc/Slides.hs @@ -53,5 +53,5 @@ prepSlides slideLevel = ensureStartWithH . splitHrule splitHrule (x : xs) = x : splitHrule xs splitHrule [] = [] ensureStartWithH bs@(Header n _:_) - | n == slideLevel = bs + | n <= slideLevel = bs ensureStartWithH bs = Header slideLevel [] : bs |