Days
Hours
Minutes
Seconds
x

Froala Editor v4.2.0 is Here LEARN MORE

Skip to content

Markdown plugin

Format words & phrases in our rich text editor using code shortcuts through predefined markdown syntax.

When in markdown mode, the Froala Editor provides an easy split screen view so users can see the changes in real-time.

Users can markdown Heading, Bold Text ,Italic, Blockquote, Ordered list , Unordered list, Code, Fenced code block, Horizontal rule, Link , Image, Table, Footnote , Strikethrough and Task list.

The list of Froala Markdown Syntax:


Element Markdown Syntax (Code)
Heading # H1
## H2
### H3
Heading ID ### My Great Heading {#custom-id}
Bold **bold text**
Italic *italicized text*
Strikethrough ~~The world is flat.~~
Blockquote > blockquote
Ordered List 1. First item
2. Second item
3. Third item
Unordered List - First item
- Second item
- Third item
emphasis * item
Code `code`
Fenced Code Block ```
{
“firstName”: “John”,
“lastName”: “Smith”,
“age”: 25
}
```
Horizontal Rule ---
Link [title](<https://www.example.com> "title")
Image ![alt text](image.jpg)
Table | Syntax | Description |
| --- | ---|
| Header | Title |
| Paragraph | Text |
Footnote Here’s a sentence with a footnote. [^1]
[^1]: This is the footnote.
Definition List term
: definition
Task List - [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

For example, to denote a heading, users can add a hashtag before the word (e.g. #Heading1, #Heading2). Or to italicize text, *italic text*. Users can also markdown Bold Text, Blockquotes, Ordered or Unordered lists, Code blocks, Images, Task lists, and many more!

Plugin methods:


markdown.isEnabled ()
returns: boolean
Find if markdown mode is active.
markdown.toggle ()
returns: -
Toggle between the markdown and text view.
markdown.refresh ($btn)
returns: Array
Check if the markdown is enabled and set the state of the markdown button.


  • $btn: The markdown button element.
  • Type: DOM Object

    Add Plugin to your code:


    Plugin name: markdown

    Toolbar button: markdown

    Plugin JS Script:
    ../js/plugins/markdown.min.js

    Or from CDN

    https://cdn.jsdelivr.net/npm/froala-editor@latest/js/plugins/markdown.min.js

    Example:

    https://froala.com/wysiwyg-editor/examples/markdown-support/

    Ready to dive in? Explore our plans

    [class^="wpforms-"]
    [class^="wpforms-"]
    [bws_google_captcha]
    <div class="gglcptch gglcptch_v2"><div id="gglcptch_recaptcha_141830678" class="gglcptch_recaptcha"></div> <noscript> <div style="width: 302px;"> <div style="width: 302px; height: 422px; position: relative;"> <div style="width: 302px; height: 422px; position: absolute;"> <iframe src="https://www.google.com/recaptcha/api/fallback?k=6Ld6lNoUAAAAAM626LfCOrnkBFJtYZAKESFCjgv_" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe> </div> </div> <div style="border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px; height: 60px; width: 300px;"> <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px !important; height: 40px !important; border: 1px solid #c1c1c1 !important; margin: 10px 25px !important; padding: 0px !important; resize: none !important;"></textarea> </div> </div> </noscript></div>
    [class^="wpforms-"]
    [class^="wpforms-"]
    [bws_google_captcha]
    <div class="gglcptch gglcptch_v2"><div id="gglcptch_recaptcha_1844398341" class="gglcptch_recaptcha"></div> <noscript> <div style="width: 302px;"> <div style="width: 302px; height: 422px; position: relative;"> <div style="width: 302px; height: 422px; position: absolute;"> <iframe src="https://www.google.com/recaptcha/api/fallback?k=6Ld6lNoUAAAAAM626LfCOrnkBFJtYZAKESFCjgv_" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe> </div> </div> <div style="border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px; height: 60px; width: 300px;"> <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px !important; height: 40px !important; border: 1px solid #c1c1c1 !important; margin: 10px 25px !important; padding: 0px !important; resize: none !important;"></textarea> </div> </div> </noscript></div>
    [class^="wpforms-"]
    [class^="wpforms-"]
    [bws_google_captcha]
    <div class="gglcptch gglcptch_v2"><div id="gglcptch_recaptcha_741456875" class="gglcptch_recaptcha"></div> <noscript> <div style="width: 302px;"> <div style="width: 302px; height: 422px; position: relative;"> <div style="width: 302px; height: 422px; position: absolute;"> <iframe src="https://www.google.com/recaptcha/api/fallback?k=6Ld6lNoUAAAAAM626LfCOrnkBFJtYZAKESFCjgv_" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe> </div> </div> <div style="border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px; height: 60px; width: 300px;"> <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px !important; height: 40px !important; border: 1px solid #c1c1c1 !important; margin: 10px 25px !important; padding: 0px !important; resize: none !important;"></textarea> </div> </div> </noscript></div>