org.eclipse.mylyn.wikitext.textile.core
Class TextileLanguage
java.lang.Object
org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage
org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage
org.eclipse.mylyn.wikitext.textile.core.TextileLanguage
- All Implemented Interfaces:
- java.lang.Cloneable
public class TextileLanguage
- extends AbstractMarkupLanguage
A textile dialect that parses Textile markup.
Based on the spec available at http://textile.thresholdstate.com/,
supports all current Textile markup constructs. Additionally supported are {toc} and
{glossary}.
- Since:
- 1.0
- Author:
- David Green
| Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage |
addPhraseModifierExtensions, addTokenExtensions, clearLanguageSyntax, getBlocks, getParagraphBreakingBlocks, getPhraseModifierSyntax, getReplacementTokenSyntax, initializeBlocks, initializePhraseModifiers, initializeSyntax, initializeTokens |
| Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage |
emitMarkupLine, emitMarkupLine, emitMarkupText, getExtendsLanguage, getIdGenerationStrategy, getInternalLinkPattern, getName, isBlocksOnly, isDetectingRawHyperlinks, isEmptyLine, isEnableMacros, isFilterGenerativeContents, setBlocksOnly, setEnableMacros, setExtendsLanguage, setFilterGenerativeContents, setInternalLinkPattern, setName, startBlock |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextileLanguage
public TextileLanguage()
addBlockExtensions
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. Overriding classes should call
super.addBlockExtensions(blocks,paragraphBreakingBlocks) if the default language extensions are
desired (glossary and table of contents).
- Overrides:
addBlockExtensions in class AbstractMarkupLanguage
- Parameters:
blocks - the list of blocks to which extensions may be addedparagraphBreakingBlocks - the list of blocks that end a paragraph
createState
protected ContentState createState()
- Overrides:
createState in class MarkupLanguage
addStandardBlocks
protected void addStandardBlocks(java.util.List<Block> blocks,
java.util.List<Block> paragraphBreakingBlocks)
- Specified by:
addStandardBlocks in class AbstractMarkupLanguage
addStandardPhraseModifiers
protected void addStandardPhraseModifiers(MarkupLanguage.PatternBasedSyntax phraseModifierSyntax)
- Specified by:
addStandardPhraseModifiers in class AbstractMarkupLanguage
addStandardTokens
protected void addStandardTokens(MarkupLanguage.PatternBasedSyntax tokenSyntax)
- Specified by:
addStandardTokens in class AbstractMarkupLanguage
createParagraphBlock
protected Block createParagraphBlock()
- Specified by:
createParagraphBlock in class AbstractMarkupLanguage
isPreprocessFootnotes
public boolean isPreprocessFootnotes()
- indicate if footnotes should be preprocessed to avoid false-positives when footnote references are used
inadvertently. The default is false.
setPreprocessFootnotes
public void setPreprocessFootnotes(boolean preprocessFootnotes)
- indicate if footnotes should be preprocessed to avoid false-positives when footnote references are used
inadvertently. The default is false.
configure
public void configure(MarkupLanguageConfiguration configuration)
throws java.lang.UnsupportedOperationException
- Overrides:
configure in class MarkupLanguage
- Throws:
java.lang.UnsupportedOperationException
clone
public TextileLanguage clone()
- Overrides:
clone in class MarkupLanguage
processContent
public void processContent(MarkupParser parser,
java.lang.String markupContent,
boolean asDocument)
- Overrides:
processContent in class MarkupLanguage
Copyright © 2011 FuseSource, Corp.. All Rights Reserved.