builder.image(createAttributes(phraseModifierMatcher,attributesOffset),text);
lastOffset = phraseModifierMatcher.end();
}
} else {
SpanType spanType = elementNameToSpanType.get(elementName);
builder.beginSpan(spanType, createAttributes(phraseModifierMatcher,attributesOffset));
emitText(text);
builder.endSpan();
lastOffset = phraseModifierMatcher.end();
}