\(.*?)\<\/code\>\<\/pre\>', dotAll: true),
(Match match) =>
'${match[1]?.replaceAll('\n', '[break]')}
',
)
.replaceAll('\n', '')
.replaceAllMapped(
RegExp(r'\(.*?)\
', dotAll: true),
(Match match) => '\n${match[1]?.replaceAll('\n', ' ')}\n',
)
.replaceAllMapped(
RegExp(r'\(.*?)\<\/i\>'),
(Match match) => '*${match[1]}*',
)
.replaceAllMapped(
RegExp(r'\.*?\<\/a\>'),
(Match match) => match[1] ?? '',
)
.replaceAll('\n', '\n\n')
.replaceAll('', '\n\n')
.replaceAll('[break]', '\n');
}
}