parseCode static method

String parseCode({
  1. required String text,
  2. 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;
  }
}