Markdown
Last updated
Last updated
⚙️ Powered by Rock RMS
Inherits from Xamarin.Forms.ContentView
Another way that information is often styled in Rock is with something called Markdown. This syntax allows you to indicate that you want things formatted in a certain fashion, but it does not give you the ability to specify exactly how that formatting is done. For example, you can specify that you want a heading, but you don't get to pick exactly how that heading is formatted.
Not everything in the Markdown syntax is supported, for example, tables and footnotes. But most of the basic syntax is supported. As with the HTML component, you will probably want to wrap your content in a CDATA
tag.
When converting the markdown to XAML the Markdown control will add StyleClasses for you. Headings will get .heading1-.heading6
, paragraphs will be assigned the .text
class and links will be assigned the .link
CSS class.
Note: Links are only clickable at a leaf block level (formatted strings don't support span user interactions). If a leaf block contains more than one link, the user is prompted. This is almost a feature since the text may be too small to be precise enough!
Text
string
The markdown text to be displayed.
Lava
bool
If true then the Text will be processed for any Lava before final rendering happens. Defaults to false.
Headings
Bold
Italic
Unordered List
Ordered List
Inline Code
Code Fence
``` Sample code here ```
Links
Image