- Offers support for both Standard Markdown/CommonMark and GitHub Flavored Markdown (GFM);
- Encompasses a wide range of functionalities: Real-time Preview, Image upload with cross-domain support, Insertion of preformatted text/code blocks/tables, Code folding, Search and replace capabilities, Read-only mode, Multiple themes, Support for multiple languages and localization (L18n), HTML entity handling, and Syntax highlighting for code;
- Markdown Extensions: Adds support for Table of Contents (ToC), Emojis, Task lists, and @mentions;
- Ensures compatibility across all major browsers (IE8+), along with support for Zepto.js and optimal performance on iPad;
- Facilitates safe parsing and filtering of HTML tags;
- Expands Markdown syntax to include support for TeX mathematical expressions (via KaTeX), Flowcharts, and Sequence Diagrams;
- Integrates with AMD/CMD module loaders such as Require.js & Sea.js, enabling customization and definition of editor plugins;
Table of Contents
[TOCM]
[TOC]
Link to Heading 1 Heading link
Link to Heading 2 Heading link
Link to Heading 3 Heading link
Link to Heading 4 Heading link
Link to Heading 5 Heading link
Link to Heading 6 Heading link
Strikethrough Strikethrough (HTML tags enabled)
Italic Italic
Bold Bold
Bold Italic Bold Italic
Superscript: X2, Subscript: O2
Abbreviations (HTML abbr tag)
The HTML standard is overseen by the W3C.
Example Blockquote
Text Formatting
"A notable quote", Source Link。
<Link> : https://github.com
GFM Auto-linking @username
$ npm install package-name
Indented 4 spaces, resembling <pre> tags.
<?php
echo "Sample code!";
?>
Indented Code Blocks (For Tables):
| Header 1 | Header 2 |
| ------------ | ------------ |
| Row 1, Cell 1| Row 1, Cell 2|
| Row 2, Cell 1| Row 2, Cell 2|
function sampleFunction(){
console.log("Sample output!");
}
(function(){
var module = function(){
return module.fn.init();
};
module.prototype = module.fn = {
init : function(){
console.log('module.init()');
return this;
},
add : function(str){
alert("Added", str);
return this;
},
remove : function(str){
alert("Removed", str);
return this;
}
};
module.fn.init.prototype = module.fn;
window.module = module;
})();
var myModule = module();
myModule.add("Example").remove("Example");<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample Title</title>
</head>
<body>
<h1>Sample Heading</h1>
</body>
</html>