git.iko.soy/typeable/pandoc
on master help sign in
Modified ConTeXt writer to use \subsubsubsubsection etc.,

since these are supported (up to at least sub x 5). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1082 788f1e2b-df1e-0410-8736-df70ead52e1b

commit4c9a85b821e497165821ff4125a23472d6eb2c96 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 17 Nov 2007, 23:26 (19 years ago) parent5b5d9bc
1 file changed+2−4
src/Text/Pandoc/Writers/ConTeXt.hs+2−4
src/Text/Pandoc/Writers/ConTeXt.hs+2−4
@@ -163,10 +163,8 @@ blockToConTeXt opts HorizontalRule = return $ text "\\thinrule\n"
163163blockToConTeXt opts (Header level lst) = do
164164 contents <- inlineListToConTeXt opts lst
165165 let base = if writerNumberSections opts then "section" else "subject"
166− return $ if level > 0 && level <= 3
167− then char '\\' <> text (concat (replicate (level - 1) "sub")) <>
168− text base <> char '{' <> contents <> char '}' <> char '\n'
169− else contents <> char '\n'
166+ return $ char '\\' <> text (concat (replicate (level - 1) "sub")) <>
167+ text base <> char '{' <> contents <> char '}' <> char '\n'
170168blockToConTeXt opts (Table caption aligns widths heads rows) = do
171169 let colWidths = map printDecimal widths
172170 let colDescriptor colWidth alignment = (case alignment of