public class TextileLanguage extends AbstractMarkupLanguage
{toc}
and
{glossary}
.AbstractMarkupLanguage.PatternBasedSyntax
blocks, configuration, internalLinkPattern, paragraphBreakingBlocks, phraseModifierSyntax, tokenSyntax
Constructor and Description |
---|
TextileLanguage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBlockExtensions(java.util.List<Block> blocks,
java.util.List<Block> paragraphBreakingBlocks)
subclasses may override this method to add blocks to the Textile language.
|
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) |
TextileLanguage |
clone() |
void |
configure(MarkupLanguageConfiguration configuration)
configure the markup language with a configuration that may alter the language syntax and capabilities.
|
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.
|
boolean |
isPreprocessFootnotes()
indicate if footnotes should be preprocessed to avoid false-positives when footnote references are used
inadvertently.
|
void |
processContent(MarkupParser parser,
java.lang.String markupContent,
boolean asDocument) |
void |
setPreprocessFootnotes(boolean preprocessFootnotes)
indicate if footnotes should be preprocessed to avoid false-positives when footnote references are used
inadvertently.
|
addPhraseModifierExtensions, addTokenExtensions, clearLanguageSyntax, emitMarkupLine, emitMarkupLine, emitMarkupText, getBlocks, getInternalLinkPattern, getParagraphBreakingBlocks, getPhraseModifierSyntax, getReplacementTokenSyntax, initializeBlocks, initializePhraseModifiers, initializeTokens, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isEnableMacros, isFilterGenerativeContents, setBlocksOnly, setEnableMacros, setFilterGenerativeContents, setInternalLinkPattern, startBlock
createDocumentBuilder, getExtendsLanguage, getFileExtensions, getIdGenerationStrategy, getName, setExtendsLanguage, setFileExtensions, setName
protected void addBlockExtensions(java.util.List<Block> blocks, java.util.List<Block> paragraphBreakingBlocks)
super.addBlockExtensions(blocks,paragraphBreakingBlocks)
if the default language extensions are
desired (glossary and table of contents).addBlockExtensions
in class AbstractMarkupLanguage
blocks
- the list of blocks to which extensions may be addedparagraphBreakingBlocks
- the list of blocks that end a paragraphprotected ContentState createState()
AbstractMarkupLanguage
createState
in class AbstractMarkupLanguage
protected void addStandardBlocks(java.util.List<Block> blocks, java.util.List<Block> paragraphBreakingBlocks)
addStandardBlocks
in class AbstractMarkupLanguage
protected void addStandardPhraseModifiers(AbstractMarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
addStandardPhraseModifiers
in class AbstractMarkupLanguage
protected void addStandardTokens(AbstractMarkupLanguage.PatternBasedSyntax tokenSyntax)
addStandardTokens
in class AbstractMarkupLanguage
protected Block createParagraphBlock()
createParagraphBlock
in class AbstractMarkupLanguage
public boolean isPreprocessFootnotes()
public void setPreprocessFootnotes(boolean preprocessFootnotes)
public void configure(MarkupLanguageConfiguration configuration) throws java.lang.UnsupportedOperationException
MarkupLanguage
configure
in class AbstractMarkupLanguage
configuration
- the configuration to usejava.lang.UnsupportedOperationException
- markup languages that do not support configuration must throw this exception.public TextileLanguage clone()
clone
in class AbstractMarkupLanguage
public void processContent(MarkupParser parser, java.lang.String markupContent, boolean asDocument)
processContent
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.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