Use Markdown

OpenFlower supports you using the lightweight markup language Markdown to format texts in your app, such as changing the font size, inserting code, and adding a list. You can also embed HTML-formatted text in Markdown for more styling options.

Use Markdown in Text and Table components.

  • Text: Use Markdown for the input text.

  • Table: Use Markdown for column type.

Markdown basics

All Markdown syntax is valid in OpenFlower.

  • Headings: Use hashtag (#) before heading. More hashtags, lower heading level.

  • Paragraphs: Use a blank line to separate texts into paragraphs.

  • Line breaks: Add at least two whitespaces at the end of a line and press Enter to start a new line.

  • Emphasis: Use single asterisk (βˆ—) before and after text to convert it to italic text, double asterisks (βˆ—βˆ—) for bold text, and triple asterisks (βˆ—βˆ—βˆ—) for italic bold text.

  • Blockquotes: Use the closing angle bracket (>) to create a blockquote.

  • Lists: Use hyphen (-), asterisk (βˆ—), or plus sign (+) followed by a whitespace to create an unordered list, and use numbers followed by a period (.) to create an ordered list.

  • Code: Use backticks (`) before and after code to denote `code` in plain text, and three backticks (```) to present ```code block```.

  • Horizontal rules: Use at least three asterisks (βˆ—βˆ—βˆ—), hyphens (---), or underscores (_ _ _) at the beginning of a line to create a horizontal rule.

  • Links: Use square brackets ([]) for the display text and parenthesis (()) for the link address. Note that no space should be inbetween. For example, [OpenFlower](https://docs.openflower.org).

  • Images: Use an exclamation mark (!) to start an image shiinsertion, and then use square bracket ([]) for the alternative text and parenthesis (()) for the link address or source path. The caption can follow the parentheses or start at a new line.

  • Escaping characters: Use backslash (\) to display the special symbols that Markdown uses. For instance, to print `` in plain text, you should use \`\` in Markdown.

For more information, see Markdown guidearrow-up-right.

GFM extension

You can also use GitHub Flavored Markdown (GFM) extensions for additional syntax.

  • Footnotes: Use caret (^) and number in square brackets ([]) to insert footnotes. For more information, see Footnotesarrow-up-right.

  • Strikethrough lines: Use double tilde (~~) before and after text to add strikethrough lines. For more information, see Styling textarrow-up-right.

  • Tables: Use hyphens (-) separated by the vertical bar (|) to create the header row of a table, and continue using the vertical bar to separate content in cells. For more information, see Tables (extension)arrow-up-right.

  • Task lists: Use a whitespace in square brackets ([ ]) within the list format to create task lists. To mark a task completed, replace the whitespace with the letter x. For more information, see Task listsarrow-up-right.

HTML support

In OpenFlower, you can use most HTML tags and properties. For more information, see Embed HTML in Markdownarrow-up-right.

circle-exclamation

Appendix: Supported HTML tags

Last updated