Package ubic.gemma.core.util
Class MarkdownUtils
java.lang.Object
ubic.gemma.core.util.MarkdownUtils
Utilities for handling Markdown text.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeMarkdown(String text) Escape special Markdown characters in a string.static StringformatMarkdownCodeSpan(String text) Format a string as a Markdown code span.
-
Constructor Details
-
MarkdownUtils
public MarkdownUtils()
-
-
Method Details
-
escapeMarkdown
Escape special Markdown characters in a string.This is aiming at escaping [Common Mark](https://spec.commonmark.org/) markdown.
-
formatMarkdownCodeSpan
Format a string as a Markdown code span.This takes care of escaping backticks by surrounding the text with double backticks (or more).
-