parseSpoiler static method
String
parseSpoiler({
- required String text,
- required GeneralLibParseModeType generalLibParseModeType,
Implementation
static String parseSpoiler({
required String text,
required GeneralLibParseModeType generalLibParseModeType,
}) {
switch (generalLibParseModeType) {
case GeneralLibParseModeType.html:
return parseHtmlSpoiler(text);
// case GeneralLibParseModeType.markdown:
// return parseMark(text, links);
default:
return text;
}
}