public class MarkdownLanguage extends AbstractMarkupLanguage
AbstractMarkupLanguage.PatternBasedSyntax
blocks, configuration, internalLinkPattern, paragraphBreakingBlocks, phraseModifierSyntax, tokenSyntax
Constructor and Description |
---|
MarkdownLanguage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addStandardBlocks(java.util.List<Block> blocks,
java.util.List<Block> paragraphBreakingBlocks) |
protected void |
addStandardPhraseModifiers(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax) |
protected void |
addStandardTokens(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax) |
DocumentBuilder |
createDocumentBuilder(java.io.Writer out,
boolean formatting)
Creates a
DocumentBuilder suitable for emitting content in this markup language. |
protected Block |
createParagraphBlock() |
protected ContentState |
createState()
Create new state for tracking a document and its contents during a parse session.
|
IdGenerationStrategy |
getIdGenerationStrategy()
get the id strategy employed by this markup language.
|
addBlockExtensions, addPhraseModifierExtensions, addTokenExtensions, clearLanguageSyntax, clone, configure, emitMarkupLine, emitMarkupLine, emitMarkupText, getBlocks, getInternalLinkPattern, getParagraphBreakingBlocks, getPhraseModifierSyntax, getReplacementTokenSyntax, initializeBlocks, initializePhraseModifiers, initializeTokens, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isEnableMacros, isFilterGenerativeContents, processContent, setBlocksOnly, setEnableMacros, setFilterGenerativeContents, setInternalLinkPattern, startBlock
createDocumentBuilder, getExtendsLanguage, getFileExtensions, getName, setExtendsLanguage, setFileExtensions, setName
protected void addStandardTokens(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax)
addStandardTokens
in class AbstractMarkupLanguage
protected void addStandardPhraseModifiers(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
addStandardPhraseModifiers
in class AbstractMarkupLanguage
protected void addStandardBlocks(java.util.List<Block> blocks, java.util.List<Block> paragraphBreakingBlocks)
addStandardBlocks
in class AbstractMarkupLanguage
protected Block createParagraphBlock()
createParagraphBlock
in class AbstractMarkupLanguage
protected ContentState createState()
AbstractMarkupLanguage
createState
in class AbstractMarkupLanguage
public DocumentBuilder createDocumentBuilder(java.io.Writer out, boolean formatting)
MarkupLanguage
DocumentBuilder
suitable for emitting content in this markup language.createDocumentBuilder
in class MarkupLanguage
out
- the target to which content is writtenformatting
- indicates if the builder should format the output using pretty-print rules. If not supported by the
document builder this parameter is ignored.public IdGenerationStrategy getIdGenerationStrategy()
MarkupLanguage
getIdGenerationStrategy
in class MarkupLanguage
Copyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html