use of org.eclipse.mylyn.wikitext.mediawiki.internal.block.HeadingBlock in project mylyn.docs by eclipse.
the class MediaWikiLanguage method addStandardBlocks.
@Override
protected void addStandardBlocks(List<Block> blocks, List<Block> paragraphBreakingBlocks) {
// IMPORTANT NOTE: Most items below have order dependencies. DO NOT REORDER ITEMS BELOW!!
blocks.add(new HeadingBlock());
blocks.add(new ListBlock());
blocks.add(new TableBlock());
if (hasPreformattedBlock()) {
// preformatted blocks are lines that start with a single space, and thus are non-optimal for
// repository usage.
blocks.add(new PreformattedBlock());
}
blocks.add(new SourceBlock());
blocks.add(new TableOfContentsBlock());
blocks.add(new EscapeBlock());
blocks.add(new CommentBlock());
blocks.add(new BehaviorSwitchBlock());
for (Block block : blocks) {
if (block instanceof ParagraphBlock || block instanceof CommentBlock) {
continue;
}
paragraphBreakingBlocks.add(block);
}
}
Aggregations