
com.vladsch.flexmark.formatter.NodeFormatterSubContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-formatter Show documentation
Show all versions of flexmark-formatter Show documentation
flexmark-java extension for formatter
package com.vladsch.flexmark.formatter;
import com.vladsch.flexmark.util.ast.Node;
public abstract class NodeFormatterSubContext implements NodeFormatterContext {
final protected MarkdownWriter markdown;
Node renderingNode;
public NodeFormatterSubContext(MarkdownWriter markdown) {
this.markdown = markdown;
this.renderingNode = null;
}
public Node getRenderingNode() {
return renderingNode;
}
public void setRenderingNode(final Node renderingNode) {
this.renderingNode = renderingNode;
}
public MarkdownWriter getMarkdown() {
return markdown;
}
public void flush() {
markdown.line().flush();
}
public void flush(int maxBlankLines) {
markdown.line().flush(maxBlankLines);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy