public class PegDownProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_PARSING_TIME |
Parser |
parser |
| Constructor and Description |
|---|
PegDownProcessor()
Creates a new processor instance without any enabled extensions and the default parsing timeout.
|
PegDownProcessor(int options)
Creates a new processor instance with the given
Extensions and the default parsing timeout. |
PegDownProcessor(int options,
long maxParsingTimeInMillis)
Creates a new processor instance with the given
Extensions and parsing timeout. |
PegDownProcessor(int options,
long maxParsingTimeInMillis,
PegDownPlugins plugins)
Creates a new processor instance with the given
Extensions, parsing timeout and plugins. |
PegDownProcessor(int options,
PegDownPlugins plugins)
Creates a new processor instance with the given
Extensions and plugins. |
PegDownProcessor(long maxParsingTimeInMillis)
Creates a new processor instance without any enabled extensions and the given parsing timeout.
|
PegDownProcessor(Parser parser)
Creates a new processor instance using the given Parser.
|
| 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(char[] markdownSource,
LinkRenderer linkRenderer,
Map<String,VerbatimSerializer> verbatimSerializerMap) |
String |
markdownToHtml(char[] markdownSource,
LinkRenderer linkRenderer,
Map<String,VerbatimSerializer> verbatimSerializerMap,
List<ToHtmlSerializerPlugin> plugins) |
String |
markdownToHtml(String markdownSource)
Converts the given markdown source to HTML.
|
String |
markdownToHtml(String markdownSource,
LinkRenderer linkRenderer)
Converts the given markdown source to HTML.
|
String |
markdownToHtml(String markdownSource,
LinkRenderer linkRenderer,
Map<String,VerbatimSerializer> verbatimSerializerMap) |
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 static final long DEFAULT_MAX_PARSING_TIME
public final Parser parser
public PegDownProcessor()
public PegDownProcessor(long maxParsingTimeInMillis)
public PegDownProcessor(int options)
Extensions and the default parsing timeout.options - the flags of the extensions to enable as a bitmaskpublic PegDownProcessor(int options,
long maxParsingTimeInMillis)
Extensions and parsing timeout.options - the flags of the extensions to enable as a bitmaskmaxParsingTimeInMillis - the parsing timeoutpublic PegDownProcessor(int options,
PegDownPlugins plugins)
Extensions and plugins.options - the flags of the extensions to enable as a bitmaskplugins - the plugins to usepublic PegDownProcessor(int options,
long maxParsingTimeInMillis,
PegDownPlugins plugins)
Extensions, parsing timeout and plugins.options - the flags of the extensions to enable as a bitmaskmaxParsingTimeInMillis - the parsing timeoutplugins - the plugins to usepublic 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(String markdownSource, LinkRenderer linkRenderer, Map<String,VerbatimSerializer> verbatimSerializerMap)
public 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 String markdownToHtml(char[] markdownSource, LinkRenderer linkRenderer, Map<String,VerbatimSerializer> verbatimSerializerMap)
public String markdownToHtml(char[] markdownSource, LinkRenderer linkRenderer, Map<String,VerbatimSerializer> verbatimSerializerMap, List<ToHtmlSerializerPlugin> plugins)
public RootNode parseMarkdown(char[] markdownSource)
markdownSource - the markdown source to convertpublic char[] prepareSource(char[] source)
source - the markdown source to processCopyright © 2009–2025 org.pegdown. All rights reserved.