Package helma.util
Class MarkdownProcessor
java.lang.Object
helma.util.MarkdownProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
Retrieve a link defined in the source text.protected String[]
lookupLink
(String linkId) Method to override for extended link lookup, e.g.static void
protected void
openTag
(String tag, StringBuilder builder) Method to override to create custom HTML tags.process()
processLinkText
(String text)
-
Constructor Details
-
MarkdownProcessor
public MarkdownProcessor() -
MarkdownProcessor
-
MarkdownProcessor
- Throws:
IOException
-
-
Method Details
-
process
-
process
-
processLinkText
-
getLink
Retrieve a link defined in the source text. If the link is not found, we call lookupLink(String) to retrieve it from an external source.- Parameters:
linkId
- the link id- Returns:
- a String array with the url as first element and the link title as second.
-
lookupLink
Method to override for extended link lookup, e.g. for integration into a wiki- Parameters:
linkId
- the link id- Returns:
- a String array with the url as first element and the link title as second.
-
openTag
Method to override to create custom HTML tags.- Parameters:
tag
- the html tag to generatebuilder
- the java.lang.StringBuilder to generate the string
-
main
- Throws:
IOException
-