Constructors
-
Block
Processor(String Initializes a new instance of the BlockProcessor class.Builder Cache, Markdown Document, Block Parser List, Markdown Parser Context)
Methods
- Close(Block) Force closing the specified block.
-
Create
Child() - Discard(Block) Discards the specified block from the stack, remove from its parent.
-
Get
Current Get the current Container that is currently openedContainer Opened() -
Go
To Moves to the position to the code indent (ColumnBeforeIndent + 4 spaces).Code Indent(Int32) -
Go
To Moves to the position to the specified column position, taking into account spaces in tabs.Column(Int32) -
Next
Char() Returns the next character in the line being processed. Update Start and Column. -
Next
Column() Returns the next character in the line taking into space taken by tabs. Update Start and Column. - Open(Block) Opens the specified block.
-
Parse
Indent() Parses the indentation from the current position in the line, updating StartBeforeIndent, ColumnBeforeIndent, Start and Column accordingly taking into account space taken by tabs. -
Peek
Char(Int32) Peeks a character at the specified offset from the current position in the line. -
Process
Line(String Processes a new line.Slice) -
Release
Child() -
Restart
Indent() Restarts the indent from the current position. -
Unwind
All Unwind any previous indent from the current character back to the first space.Indents()
Fields
- Line The current line being processed.
Properties
- Column Gets or sets the column.
-
Column
Before Gets the column position before the indent occurred.Indent - Context Gets the parser context or null if none is available.
-
Continue
Processing private Gets or sets a value indicating whether to continue processing the current line.Line -
Current
Block Gets the last block that is opened. -
Current
Char Gets the current character being processed. -
Current
Container Gets the current active container. -
Current
Line Gets or sets the current line start position.Start Position - Document Gets the root document.
- Indent Gets the current indent position (number of columns between the previous indent and the current position).
-
Is
Blank Gets a value indicating whether the line is blank (valid only after ParseIndent has been called).Line -
Is
Code Gets a value indicating whether a code indentation is at the beginning of the line being processed.Indent -
Last
Block Gets the last block that is created. -
Line
Index Gets the index of the line in the source text. -
New
Blocks Gets the new blocks to push. A BlockParser is required to push new blocks that it creates to this property. -
Next
Continue Gets the next block in a TryContinue(Markdig.Parsers.BlockProcessor, Markdig.Syntax.Block). -
Opened
Blocks private Gets the current stack of Block being processed. - Parsers Gets the list of BlockParser configured with this parser state.
- Start Gets the position of the current character in the line being processed.
-
Start
Before Gets the character position before the indent occurred.Indent -
String
Builders Gets the cache of string builders.