Commit 246f8363 authored by oanalavinia's avatar oanalavinia
Browse files

[MISC] Move XHTMLChainingRenderer#HTML_TYPES to SyntaxType

* add since tag
* change name to BROWSER_TYPES since this represents better the type
parent 32a206be
......@@ -126,9 +126,11 @@ public class SyntaxType implements Comparable<SyntaxType>
public static final SyntaxType HTML = register("html", "HTML");
/**
* All HTML types.
* Browser specific syntaxes.
*
* @since 13.9RC1
*/
public static final Set<SyntaxType> HTML_TYPES = SetUtils.hashSet(XHTML, HTML, ANNOTATED_XHTML, ANNOTATED_HTML);
public static final Set<SyntaxType> BROWSER_TYPES = SetUtils.hashSet(XHTML, HTML, ANNOTATED_XHTML, ANNOTATED_HTML);
/**
* Plain text syntax.
......
......@@ -586,7 +586,7 @@ public void onImage(ResourceReference reference, boolean freestanding, Map<Strin
public void onRawText(String text, Syntax syntax)
{
// Directly inject the HTML content in the wiki printer (bypassing the XHTML printer)
if (SyntaxType.HTML_TYPES.contains(syntax.getType())) {
if (SyntaxType.BROWSER_TYPES.contains(syntax.getType())) {
getXHTMLWikiPrinter().printRaw(text);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment