Package org.pegdown.plugins
Class PegDownPlugins.Builder
java.lang.Object
org.pegdown.plugins.PegDownPlugins.Builder
- Enclosing class:
PegDownPlugins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withBlockPluginRules
(org.parboiled.Rule... blockPlugins) withInlinePluginRules
(org.parboiled.Rule... inlinePlugins) withPlugin
(Class<? extends org.parboiled.BaseParser<Object>> pluginParser, Object... arguments) Add a plugin parser.withSpecialChars
(Character... chars)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withInlinePluginRules
-
withBlockPluginRules
-
withSpecialChars
-
withPlugin
public PegDownPlugins.Builder withPlugin(Class<? extends org.parboiled.BaseParser<Object>> pluginParser, Object... arguments) Add a plugin parser. This should either implementInlinePluginParser
orBlockPluginParser
, or both. The parser will be enhanced by parboiled before its rules are extracted and registered here.- Parameters:
pluginParser
- the plugin parser class.arguments
- the arguments to pass to the constructor of that class.
-
build
-