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

info.bliki.wiki.tags.IgnoreTag Maven / Gradle / Ivy

The newest version!
package info.bliki.wiki.tags;

import info.bliki.wiki.filter.ITextConverter;
import info.bliki.wiki.model.IWikiModel;
import info.bliki.wiki.tags.util.INoBodyParsingTag;

import java.io.IOException;

/**
 * Wiki tag which renders no HTML output. This tag is useful for ignoring wiki
 * extension tags, which shouldn't be supported. See Issue 94
 *
 */
public class IgnoreTag extends HTMLTag implements INoBodyParsingTag {

    public IgnoreTag(String tagName) {
        super(tagName);
    }

    @Override
    public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel model) throws IOException {
        // doesn't add any output to the buffer
    }

    @Override
    public boolean isAllowedAttribute(String attName) {
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy