info.bliki.wiki.tags.WPATag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.wiki.tags;
import info.bliki.wiki.filter.ITextConverter;
import info.bliki.wiki.model.IWikiModel;
import java.io.IOException;
import java.util.List;
public class WPATag extends HTMLTag {
public static final String HREF = "href";
public static final String ANCHOR = "anchor";
public static final String WIKILINK = "wikilink";
public static final String CLASS = "class";
public static final String TITLE = "title";
public WPATag() {
super("a");
}
@Override
public boolean isReduceTokenStack() {
return false;
}
public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel model) throws IOException {
if (converter.renderLinks()) {
super.renderHTML(converter, buf, model);
} else {
List