public class Markdown extends JRubyTransformer<Markdown>
Transformer that translates Markdown files into HTML.| Modifier | Constructor and Description |
|---|---|
protected |
Markdown(boolean fullDocument)
Creates a
Markdown instance. |
| Modifier and Type | Method and Description |
|---|---|
Markdown |
addStylesheet(String url)
Adds a CSS stylesheet to the rendered HTML document.
|
static Markdown |
fullDocument()
Create a
Transformer instance that renders a full markdown HTML document structure. |
List<String> |
getLoadPaths()
Return the load paths to use for
ScriptingContainer.setLoadPaths(List). |
protected Class<Markdown> |
getTransformerType() |
static Markdown |
partialDocument()
Create a
Transformer instance that renders markdown without adding the HTML scaffold like a body or head. |
protected void |
prepareContainer(org.jruby.embed.ScriptingContainer container) |
Object |
runScript(org.jruby.embed.ScriptingContainer container)
This method must perform the transformation using the supplied
ScriptingContainer. |
Markdown |
self()
Just returns the current object as the correct type for make the fluent builder work with subclasses.
|
Markdown |
withTitle(String title)
Sets the title of the rendered HTML document.
|
compatVersion, compileMode, transformtransformprotected Markdown(boolean fullDocument)
Markdown instance.public static Markdown fullDocument()
Transformer instance that renders a full markdown HTML document structure.public static Markdown partialDocument()
Transformer instance that renders markdown without adding the HTML scaffold like a body or head.public Markdown withTitle(String title)
public Markdown addStylesheet(String url)
public List<String> getLoadPaths()
JRubyTransformerScriptingContainer.setLoadPaths(List).getLoadPaths in class JRubyTransformer<Markdown>public Object runScript(org.jruby.embed.ScriptingContainer container)
JRubyTransformerScriptingContainer. The container is pre
initialized with a variable input which should be used by the script to perform the transformation.runScript in class JRubyTransformer<Markdown>public Markdown self()
JRubyTransformerself in class JRubyTransformer<Markdown>protected void prepareContainer(org.jruby.embed.ScriptingContainer container)
prepareContainer in class JRubyTransformer<Markdown>protected Class<Markdown> getTransformerType()
getTransformerType in class JRubyTransformer<Markdown>Copyright © 2015 OCPsoft. All Rights Reserved.