Basic Usage
In this section, we will explain the MDX used to build data applications with Morph. MDX is a format for writing Markdown files using React components.
About Markdown Syntax
Markdown is a language that allows you to style text with simple notation. It is often used in blog posts, documentation, and GitHub repository README files. Below are examples of typical syntax.
Headings
Headings are written with lines starting with #
. The more #
there are, the lower the level of the heading.
Emphasis
Emphasis is written by enclosing text with *
or _
.
Lists
Lists are written with lines starting with -
or 1.
. -
represents unordered lists, and 1.
represents ordered lists.
Links
Links are written as [link text](URL)
.
Images
Images are written as ![alt text](image URL)
.
Code
Code is written by enclosing it with ```.
Github Flavored Markdown
Morph supports GitHub Flavored Markdown (GFM). GFM is an extended specification of Markdown provided by GitHub, adding features such as tables, task lists, and syntax highlighting for code blocks.
Tables
Tables are written with lines separated by |
.
Task Lists
Task lists are written with - [ ]
or - [x]
.
Syntax Highlighting for Code Blocks
Syntax highlighting for code blocks is written as ```language.
HTML
Markdown can also embed HTML. By embedding HTML, you can achieve more advanced layouts and functions that cannot be expressed with Markdown syntax.
However, styles and class names must be written according to JSX notation.
You can also insert HTML tags within Markdown blocks.
Conversely, you can also insert Markdown within HTML blocks.