com.vladsch.flexmark.ast.BlockQuote Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark Show documentation
Show all versions of flexmark Show documentation
Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)
The newest version!
package com.vladsch.flexmark.ast;
import com.vladsch.flexmark.util.ast.Block;
import com.vladsch.flexmark.util.ast.BlockContent;
import com.vladsch.flexmark.util.ast.BlockQuoteLike;
import com.vladsch.flexmark.util.ast.KeepTrailingBlankLineContainer;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class BlockQuote extends Block implements BlockQuoteLike, KeepTrailingBlankLineContainer {
private BasedSequence openingMarker = BasedSequence.NULL;
@Override
public void getAstExtra(@NotNull StringBuilder out) {
segmentSpanChars(out, openingMarker, "marker");
}
@NotNull
@Override
public BasedSequence[] getSegments() {
return new BasedSequence[] { openingMarker };
}
public BlockQuote() {
}
public BlockQuote(BasedSequence chars) {
super(chars);
}
public BlockQuote(BasedSequence chars, List segments) {
super(chars, segments);
}
public BlockQuote(BlockContent blockContent) {
super(blockContent);
}
public BasedSequence getOpeningMarker() {
return openingMarker;
}
public void setOpeningMarker(BasedSequence openingMarker) {
this.openingMarker = openingMarker;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy