Search in sources :

Example 1 with ItalicString

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

the class ItalicRule method toMarkDownString.

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

Aggregations

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