Test 2
Markdown output š«
CKEditor 5 can be configured to output Markdown instead of HTML. Markdown is a lightweight markup language that you can use to add formatting to plain text documents. Use the Source button to check and edit the Markdown source code of this content.
The editor-produced Markdown output supports most essential features, like links, different kinds of emphasis, inline code formatting
, or code blocks:
p {
text-align: center;
color: red;
}
Markdown input š¬
Thanks to the autoformatting feature, you can use Markdown syntax when writing. Try it out - use these (or any other) Markdown shortcuts in the editor to format the content on the fly š!
Inline formatting | Shortcut |
---|---|
Bold | Type ** or __ around your text. |
Italic | Type * or _ around your text. |
Code |
Type Ė around your text. |
Type ~~ around your text. |
Shh! š¤« Markdown has very basic support for tables. Some advanced table-related features like table or cell styling were disabled in this demo.
Block formatting
You can also use Markdown to create various text blocks, such as:
- Block quotes - Start a line with
ļ¹„
followed by a space. - Headings:
- Heading 1 - Start a line with
#
followed by a space. - Heading 2 - Start a line with
##
followed by a space. - Heading 3 - Start a line with
###
followed by a space.
- Heading 1 - Start a line with
- Lists, including nested ones:
- Numbered lists - Start a line with
1.
or1)
followed by a space. - Bulleted lists - Start a line with
*
or-
followed by a space. - To-do lists - Start a line with
[ ]
or[x]
followed by a space to insert an unchecked or checked list item.
- Numbered lists - Start a line with
- Code blocks - Start a line with
ĖĖĖ
. - Horizontal lines - Start a line with
---