build Markdown Annotated String
Extension function to build an AnnotatedString from a Markdown string. This function will parse the Markdown content and apply the given styles to the text.
It only supports TEXT and PARAGRAPH nodes.
Return
The constructed AnnotatedString.
Parameters
The base text style to apply.
The Markdown flavour descriptor to use (default is GFM).
Settings object to adjust different behavior of this annotated string.
Extension function to build an AnnotatedString from a Markdown string. This function will parse the Markdown content and apply the given styles to the text.
It only supports TEXT and PARAGRAPH nodes.
Return
The constructed AnnotatedString.
Parameters
The AST node representing the text.
The base text style to apply.
Settings object to adjust different behavior of this annotated string.
Builds an AnnotatedString with the contents of the given Markdown ASTNode node.
This method automatically constructs the string with child components like:
Paragraph
Image
Strong
...
Deprecated
This function is deprecated. Use the new `annotatorSettings` function to create a settings object.
Replace with
buildMarkdownAnnotatedString(style, annotatorSettings, flavour)Extension function to build an AnnotatedString from a Markdown string. This function will parse the Markdown content and apply the given styles to the text.
It only supports TEXT and PARAGRAPH nodes.
Return
The constructed AnnotatedString.
Parameters
The base text style to apply.
The style to apply to link text.
The style to apply to code spans.
The Markdown flavour descriptor to use (default is GFM).
An optional annotator for additional processing.