All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.commonmark.ext.gfm.strikethrough.Strikethrough Maven / Gradle / Ivy

There is a newer version: 0.24.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy