Search in sources :

Example 1 with BoldString

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

the class BoldRule method toMarkDownString.

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

Aggregations

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