Package org.hl7.fhir.utilities
Class MarkDownProcessor
- java.lang.Object
-
- org.hl7.fhir.utilities.MarkDownProcessor
-
public class MarkDownProcessor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMarkDownProcessor.Dialect
-
Constructor Summary
Constructors Constructor Description MarkDownProcessor(MarkDownProcessor.Dialect dialect)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisSimpleMarkdown(String description)static StringpreProcess(String source)This deals with a painful problem created by the intersection of previous publishing processes and the way commonmark specifies that < is handled in content.Stringprocess(String source, String context)
-
-
-
Constructor Detail
-
MarkDownProcessor
public MarkDownProcessor(MarkDownProcessor.Dialect dialect)
-
-
Method Detail
-
preProcess
public static String preProcess(String source)
This deals with a painful problem created by the intersection of previous publishing processes and the way commonmark specifies that < is handled in content. For control reasons, the FHIR specification does not allow raw html tags in the markdown This check finds any raw <[x] where [x] is any alpha character, and prepends \ to it so that it renders as a < (e.g. gets escaped in the output HTML) This is public to enable testing (not for direct use otherwise)- Parameters:
source-- Returns:
-
isSimpleMarkdown
public static boolean isSimpleMarkdown(String description)
-
-