public class PegDownProcessor extends Object
| Constructor and Description |
|---|
PegDownProcessor()
Creates a new processor instance without any enabled extensions.
|
PegDownProcessor(int options)
Creates a new processor instance with the given
Extensions. |
PegDownProcessor(Parser parser)
Creates a new processor instance using the given Parser and tabstop width.
|
| Modifier and Type | Method and Description |
|---|---|
String |
markdownToHtml(char[] markdownSource)
Converts the given markdown source to HTML.
|
String |
markdownToHtml(char[] markdownSource,
LinkRenderer linkRenderer)
Converts the given markdown source to HTML.
|
String |
markdownToHtml(String markdownSource)
Converts the given markdown source to HTML.
|
String |
markdownToHtml(String markdownSource,
LinkRenderer linkRenderer)
Converts the given markdown source to HTML.
|
RootNode |
parseMarkdown(char[] markdownSource)
Parses the given markdown source and returns the root node of the generated Abstract Syntax Tree.
|
char[] |
prepareSource(char[] source)
Adds two trailing newlines.
|
public final Parser parser
public PegDownProcessor()
public PegDownProcessor(int options)
Extensions.options - the flags of the extensions to enable as a bitmaskpublic PegDownProcessor(Parser parser)
parser - the parser instance to usepublic String markdownToHtml(String markdownSource)
markdownSource - the markdown source to convertpublic String markdownToHtml(String markdownSource, LinkRenderer linkRenderer)
markdownSource - the markdown source to convertlinkRenderer - the LinkRenderer to usepublic String markdownToHtml(char[] markdownSource)
markdownSource - the markdown source to convertpublic String markdownToHtml(char[] markdownSource, LinkRenderer linkRenderer)
markdownSource - the markdown source to convertlinkRenderer - the LinkRenderer to usepublic RootNode parseMarkdown(char[] markdownSource)
markdownSource - the markdown source to convertpublic char[] prepareSource(char[] source)
source - the markdown source to processCopyright © 2010-2012. All Rights Reserved.