parseLink static method

String parseLink({
  1. required String text,
  2. required String links,
  3. required GeneralLibParseModeType generalLibParseModeType,
})

Implementation

static String parseLink({
  required String text,
  required String links,
  required GeneralLibParseModeType generalLibParseModeType,
}) {
  switch (generalLibParseModeType) {
    case GeneralLibParseModeType.html:
      return parseHtmlLink(text, links);
    case GeneralLibParseModeType.markdown:
      return parseMarkdownLink(text, links);
    default:
      return text;
  }
}