diff options
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index ace5cfe5f..cad0915df 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -271,7 +271,9 @@ blockToHtml opts (Header level lst) = do                        then ("", [])                        else (head ids, tail ids)    put $ st {stIds = rest} -  let attribs = [identifier id] +  let attribs = if writerStrictMarkdown opts && not (writerTableOfContents opts) +                   then [] +                   else [identifier id]    let headerHtml = case level of                1 -> h1 contents ! attribs                2 -> h2 contents ! attribs | 
