use of org.eclipse.mylyn.wikitext.markdown.internal.token.PreserverHtmlEntityToken in project mylyn.docs by eclipse.
the class MarkdownLanguage method addStandardTokens.
@Override
protected void addStandardTokens(PatternBasedSyntax tokenSyntax) {
// HTML entities are preserved
tokenSyntax.add(new PreserverHtmlEntityToken());
// inline links have to be handled as tokens, as they can be embedded in phrases
tokenSyntax.add(new InlineLinkReplacementToken());
tokenSyntax.add(new InlineImageReplacementToken());
// two or more spaces at end of line force a line break
// $NON-NLS-1$
tokenSyntax.add(new PatternLineBreakReplacementToken("( {2,})$"));
}
Aggregations