diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-10 19:58:39 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-10 19:58:39 -0800 |
commit | 1a7686ad79b302b789c8c1038d9b5294b27a3743 (patch) | |
tree | 4d3a3826d68c6afd661186cd12d9fc5755b9d118 /src/Text | |
parent | cf4cd2ccb07c01909672fd4e95b285ab84058d29 (diff) | |
download | pandoc-1a7686ad79b302b789c8c1038d9b5294b27a3743.tar.gz |
Ext_header_identifiers -> Ext_auto_identifiers.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 4 | ||||
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index f4ab0d2b4..e64e7afda 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -90,7 +90,7 @@ data Extension = | Ext_hard_line_breaks -- ^ All newlines become hard line breaks | Ext_literate_haskell -- ^ Enable literate Haskell conventions | Ext_abbreviations -- ^ PHP markdown extra abbreviation definitions - | Ext_header_identifiers -- ^ Automatic identifiers for headers + | Ext_auto_identifiers -- ^ Automatic identifiers for headers | Ext_implicit_header_references -- ^ Implicit reference links for headers deriving (Show, Read, Enum, Eq, Ord, Bounded) @@ -128,7 +128,7 @@ pandocExtensions = Set.fromList , Ext_strikeout , Ext_superscript , Ext_subscript - , Ext_header_identifiers + , Ext_auto_identifiers , Ext_implicit_header_references ] diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index c27ccf6fd..5ff196571 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -377,7 +377,7 @@ addToHeaderList :: F Inlines -> MarkdownParser String addToHeaderList text = do let headerList = B.toList $ runF text defaultParserState updateState $ \st -> st{ stateHeaders = headerList : stateHeaders st } - (do guardEnabled Ext_header_identifiers + (do guardEnabled Ext_auto_identifiers ids <- stateIdentifiers `fmap` getState let id' = uniqueIdent headerList ids updateState $ \st -> st{ stateIdentifiers = id' : ids } |