Package org.tealeaf.javamarkdown.types
Class Markup
java.lang.Object
org.tealeaf.javamarkdown.MarkdownElement
org.tealeaf.javamarkdown.types.InlineElement
org.tealeaf.javamarkdown.types.Markup
- Direct Known Subclasses:
Bold
,Code
,Italic
,Strikethrough
Represents markdown elements that indicates a simple markup syntax to the
content text, such as
**words**
to indicate bold text.- Since:
- 0.0.1
- Author:
- Thomas Kwashnak
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.tealeaf.javamarkdown.types.InlineElement
checkType, requiresNewlineAfter, requiresNewlineBefore
Methods inherited from class org.tealeaf.javamarkdown.MarkdownElement
asString, toAppendable, toString, toWriter
-
Field Details
-
syntax
The syntax used in the markup language -
object
Object to insert into the markup
-
-
Constructor Details
-
Markup
Creates a new markup element with a content object and the wrapping syntax- Parameters:
object
- Content object to displaysyntax
- String syntax to put on either side of the content- Since:
- 0.0.1
-
-
Method Details
-
asString
Formats the element to a string- Specified by:
asString
in classMarkdownElement
- Returns:
- String representation of the formatted item
- Since:
- 0.0.9
-