parseCode static method
String
parseCode({
- required String text,
- required GeneralLibParseModeType generalLibParseModeType,
Implementation
static String parseCode({
required String text,
required GeneralLibParseModeType generalLibParseModeType,
}) {
switch (generalLibParseModeType) {
case GeneralLibParseModeType.html:
return parseHtmlCode(text);
case GeneralLibParseModeType.markdown:
return parseMarkdownCode(text);
default:
return text;
}
}