Package org.bsc.markdown
Class MarkdownVisitorHelper
- java.lang.Object
-
- org.bsc.markdown.MarkdownVisitorHelper
-
public class MarkdownVisitorHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MarkdownVisitorHelper.EscapeTextEnum
-
Constructor Summary
Constructors Constructor Description MarkdownVisitorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
escapeMarkdownText(String text, MarkdownVisitorHelper.EscapeTextEnum firstEscape, MarkdownVisitorHelper.EscapeTextEnum... nextEscapes)
Escapes special Markdown characters in a string.static boolean
isConfluenceMacro(String text)
static boolean
isConfluenceMacroOrVariable(String text)
static boolean
isConfluenceVariable(String text)
static boolean
isURL(String url)
static Matcher
parseConfluenceMacro(String text)
static String
processImageUrl(String url, MarkdownParserContext context)
static String
processLinkUrl(String url, MarkdownParserContext parseContext)
-
-
-
Method Detail
-
isURL
public static boolean isURL(String url)
-
processImageUrl
public static String processImageUrl(String url, MarkdownParserContext context)
- Parameters:
url
-- Returns:
-
processLinkUrl
public static String processLinkUrl(String url, MarkdownParserContext parseContext)
-
isConfluenceMacroOrVariable
public static boolean isConfluenceMacroOrVariable(String text)
- Parameters:
text
-- Returns:
-
isConfluenceMacro
public static boolean isConfluenceMacro(String text)
- Parameters:
text
-- Returns:
-
isConfluenceVariable
public static boolean isConfluenceVariable(String text)
-
parseConfluenceMacro
public static Matcher parseConfluenceMacro(String text)
- Parameters:
text
-- Returns:
-
escapeMarkdownText
public static String escapeMarkdownText(String text, MarkdownVisitorHelper.EscapeTextEnum firstEscape, MarkdownVisitorHelper.EscapeTextEnum... nextEscapes)
Escapes special Markdown characters in a string.- Parameters:
text
- text The text to escapefirstEscape
-nextEscapes
-- Returns:
- The escaped text
-
-