git.iko.soy/typeable/pandoc
on master help sign in
Removed CITEPROC CPP conditionals from library code.

By Cabal policy, the API should not change depending on flags.

commit23c6f56bc5bb5f7a994a60ccf1bb914366d74f81 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 6 Nov 2010, 14:58 (16 years ago) parentf7f6b24
2 files changed−8
src/Text/Pandoc/Parsing.hs−4 src/Text/Pandoc/Readers/Markdown.hs−4
src/Text/Pandoc/Parsing.hs−4
@@ -586,9 +586,7 @@ data ParserState = ParserState
586586 stateQuoteContext :: QuoteContext, -- ^ Inside quoted environment?
587587 stateSanitizeHTML :: Bool, -- ^ Sanitize HTML?
588588 stateKeys :: KeyTable, -- ^ List of reference keys
589−#ifdef _CITEPROC
590589 stateCitations :: [String], -- ^ List of available citations
591−#endif
592590 stateNotes :: NoteTable, -- ^ List of notes
593591 stateTabStop :: Int, -- ^ Tab stop
594592 stateStandalone :: Bool, -- ^ Parse bibliographic info?
@@ -616,9 +614,7 @@ defaultParserState =
616614 stateQuoteContext = NoQuote,
617615 stateSanitizeHTML = False,
618616 stateKeys = M.empty,
619−#ifdef _CITEPROC
620617 stateCitations = [],
621−#endif
622618 stateNotes = [],
623619 stateTabStop = 4,
624620 stateStandalone = False,
src/Text/Pandoc/Readers/Markdown.hs−4
@@ -912,9 +912,7 @@ inlineParsers = [ str
912912 , note
913913 , inlineNote
914914 , link
915−#ifdef _CITEPROC
916915 , inlineCitation
917−#endif
918916 , image
919917 , math
920918 , strikeout
@@ -1305,7 +1303,6 @@ rawHtmlInline' = do
13051303 else anyHtmlInlineTag
13061304 return $ HtmlInline result
13071305
1308−#ifdef _CITEPROC
13091306inlineCitation :: GenParser Char ParserState Inline
13101307inlineCitation = try $ do
13111308 failIfStrict
@@ -1351,4 +1348,3 @@ parseLabel = try $ do
13511348 (False,True ) -> AuthorOnly
13521349 _ -> NormalCitation
13531350 return $ Citation cit (trim p') (trim loc) mode 0 0
1354−#endif