replaceMd property
String
replaceMd
Remove markdown inlines styles. Like: bold -> bold
Implementation
String get replaceMd {
return replaceAllMapped(STRONG_PATTERN, (Match match) {
final String contentWithoutStrong = match.group(1)!;
return contentWithoutStrong;
}).replaceAllMapped(ITALIC_PATTERN, (Match match) {
final String contentWithoutItalic = match.group(1)!;
return contentWithoutItalic;
}).replaceAllMapped(UNDERLINE_WITH_OPTIONAL_STYLES_PATTERN, (Match match) {
final String contentWithoutUnderline = match.group(4)!;
return contentWithoutUnderline;
}).replaceAllMapped(SRIKE_WITH_OPTIONAL_STYLES_PATTERN, (Match match) {
final String contentWithoutStrike = match.group(5)!;
return contentWithoutStrike;
});
}