Search in sources :

Example 1 with StrikeString

use of com.m2mobi.markymarkcommon.markdownitems.inline.StrikeString in project MarkyMark-Android by M2Mobi.

the class StrikeRule method toMarkDownString.

@Override
public MarkDownString toMarkDownString(final String pContent) {
    Matcher matcher = getRegex().matcher(pContent);
    String content = "";
    if (matcher.find()) {
        content = matcher.group(1);
    }
    return new StrikeString(content, true);
}
Also used : Matcher(java.util.regex.Matcher) StrikeString(com.m2mobi.markymarkcommon.markdownitems.inline.StrikeString) MarkDownString(com.m2mobi.markymark.item.inline.MarkDownString) StrikeString(com.m2mobi.markymarkcommon.markdownitems.inline.StrikeString)

Aggregations

MarkDownString (com.m2mobi.markymark.item.inline.MarkDownString)1 StrikeString (com.m2mobi.markymarkcommon.markdownitems.inline.StrikeString)1 Matcher (java.util.regex.Matcher)1