Parsing: add stateInNote and stateLastNoteNumber to ParserState.
These will be used to populate note numbers for citations.
This commit is contained in:
parent
39f357027a
commit
b2f3074988
1 changed files with 4 additions and 0 deletions
|
@ -1136,6 +1136,8 @@ data ParserState = ParserState
|
|||
stateNotes :: NoteTable, -- ^ List of notes (raw bodies)
|
||||
stateNotes' :: NoteTable', -- ^ List of notes (parsed bodies)
|
||||
stateNoteRefs :: Set.Set Text, -- ^ List of note references used
|
||||
stateInNote :: Bool, -- ^ True if parsing note contents
|
||||
stateLastNoteNumber :: Int, -- ^ Last note number for citations
|
||||
stateMeta :: Meta, -- ^ Document metadata
|
||||
stateMeta' :: F Meta, -- ^ Document metadata
|
||||
stateCitations :: M.Map Text Text, -- ^ RST-style citations
|
||||
|
@ -1247,6 +1249,8 @@ defaultParserState =
|
|||
stateNotes = [],
|
||||
stateNotes' = M.empty,
|
||||
stateNoteRefs = Set.empty,
|
||||
stateInNote = False,
|
||||
stateLastNoteNumber = 0,
|
||||
stateMeta = nullMeta,
|
||||
stateMeta' = return nullMeta,
|
||||
stateCitations = M.empty,
|
||||
|
|
Loading…
Add table
Reference in a new issue