org.commonmark.ext.gfm.strikethrough.Strikethrough Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commonmark-ext-gfm-strikethrough Show documentation
Show all versions of commonmark-ext-gfm-strikethrough Show documentation
commonmark-java extension for GFM strikethrough using ~~ (GitHub Flavored Markdown)
package org.commonmark.ext.gfm.strikethrough;
import org.commonmark.node.CustomNode;
import org.commonmark.node.Delimited;
/**
* A strikethrough node containing text and other inline nodes as children.
*/
public class Strikethrough extends CustomNode implements Delimited {
private String delimiter;
public Strikethrough(String delimiter) {
this.delimiter = delimiter;
}
@Override
public String getOpeningDelimiter() {
return delimiter;
}
@Override
public String getClosingDelimiter() {
return delimiter;
}
}