public interface LinkRefProcessor
| Modifier and Type | Method and Description |
|---|---|
com.vladsch.flexmark.util.sequence.BasedSequence |
adjustInlineText(com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
Adjust child nodes' text as needed when some of the link ref text was used in the opening or closing sequence of the node
or if the children are not desired then removeIndex them.
|
boolean |
allowDelimiters(com.vladsch.flexmark.util.sequence.BasedSequence chars,
com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
Allows the delimiter processor to allow/disallow other delimiters in its inline text
|
com.vladsch.flexmark.ast.Node |
createNode(com.vladsch.flexmark.util.sequence.BasedSequence nodeChars)
Create the desired element that was previously matched with isMatch
|
int |
getBracketNestingLevel()
Whether the element consists of nested [] inside the link ref.
|
boolean |
getWantExclamationPrefix()
Whether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text
|
boolean |
isMatch(com.vladsch.flexmark.util.sequence.BasedSequence nodeChars)
Test whether the element matches desired one.
|
void |
updateNodeElements(com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
Allows the processor to adjust nodes' elements after all delimiters have been processed inside the inlined text
|
boolean getWantExclamationPrefix()
int getBracketNestingLevel()
When >0 then preview of next characters is used and if they will match then inner reference will not be created to
allow outer one to match the desired element
>0 for nested, 0 for not nestedboolean isMatch(com.vladsch.flexmark.util.sequence.BasedSequence nodeChars)
nodeChars - text to match, including [] or ![]com.vladsch.flexmark.ast.Node createNode(com.vladsch.flexmark.util.sequence.BasedSequence nodeChars)
nodeChars - char sequence from which to create the nodecom.vladsch.flexmark.util.sequence.BasedSequence adjustInlineText(com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
document - document, can be used to get parsing optionsnode - node whose inline text is to be adjusted to reflect some of the text having been used as part of the opener and/or closer sequence.boolean allowDelimiters(com.vladsch.flexmark.util.sequence.BasedSequence chars,
com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
chars - character sub-sequence to testdocument - document, can be used to get optionsnode - delimited node created by this processor @return true if delimiters are allowed in this part of the node's textvoid updateNodeElements(com.vladsch.flexmark.ast.Document document,
com.vladsch.flexmark.ast.Node node)
document - document, can be used to get parsing optionsnode - node whose elements can be adjustedCopyright © 2018. All rights reserved.