parseBold static method

String parseBold({
  1. required String text,
  2. required GeneralLibParseModeType generalLibParseModeType,
})

Implementation

static String parseBold({
  required String text,
  required GeneralLibParseModeType generalLibParseModeType,
}) {
  switch (generalLibParseModeType) {
    case GeneralLibParseModeType.html:
      return parseHtmlBold(text);
    case GeneralLibParseModeType.markdown:
      return parseMarkdownBold(text);
    default:
      return text;
  }
}