parseMarkdown static method

String parseMarkdown({
  1. required String content,
})

Implementation

static String parseMarkdown({required String content}) {
  String markdown_text = content.replaceAllMapped(
    RegExp(
      "<del>(.*)</del>",
      caseSensitive: false,
      multiLine: true,
    ),
    (match) {
      return "<s>${match.group(1)}</s>";
    },
  );

  return markdown_text;
}