use of com.vladsch.flexmark.ext.gfm.strikethrough.Strikethrough in project flexmark-java by vsch.
the class StrikethroughSubscriptDelimiterProcessor method process.
@Override
public void process(Delimiter opener, Delimiter closer, int delimitersUsed) {
// wrap nodes between delimiters in strikethrough.
DelimitedNode emphasis = delimitersUsed == 1 ? new Subscript(opener.getTailChars(delimitersUsed), BasedSequence.NULL, closer.getLeadChars(delimitersUsed)) : new Strikethrough(opener.getTailChars(delimitersUsed), BasedSequence.NULL, closer.getLeadChars(delimitersUsed));
opener.moveNodesBetweenDelimitersTo(emphasis, closer);
}
use of com.vladsch.flexmark.ext.gfm.strikethrough.Strikethrough in project flexmark-java by vsch.
the class StrikethroughDelimiterProcessor method process.
@Override
public void process(Delimiter opener, Delimiter closer, int delimitersUsed) {
// wrap nodes between delimiters in strikethrough.
Strikethrough strikethrough = new Strikethrough(opener.getTailChars(delimitersUsed), BasedSequence.NULL, closer.getLeadChars(delimitersUsed));
opener.moveNodesBetweenDelimitersTo(strikethrough, closer);
}
Aggregations