A specific FormattedText type for inline markdown.
This intentionally does not support block-level markdown elements, as FormattedText is not suitable for that. If you have formatted inline strings embeded in a semantic structure you might want to create a custom type for that structure.
The types of block formatting Markdown supports.
Turn a markdown-formatted string into Blocks.
The inline portions of the Block structure will be instances of FormattedText.
Turn a markdown-formatted string into a FormattedText. Parsing will fail if the markdown contains block-level styling, which is not supported.
If you have your own logic for rendering the markdown block elements, you can call this function to render the inline portions of the Markdown.
If you want to render your markdown in a different way take a look at the implementation of this function
to see how you can use FormattedText.chunks to do so in a simple way.
The different types of inline formatting that Markdown supports.