Skip to content

k0d1r/editor.md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation


Features

  • 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;

Editor.md

Editor.md Logo

GitHub Stars

GitHub Forks

GitHub Tags

GitHub Release

GitHub Issues

Bower Version

Table of Contents

[TOCM]

[TOC]

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

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

Headers (Alternative Formatting)

H1 Header (Alternative Style)

H2 Header (Alternative Style)

Text Styling


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.

Blockquotes

Example Blockquote

Text Formatting

"A notable quote", Source Link

Hyperlinks

Link Example

Link with Title

<Link> : https://github.com

Reference Link

GFM Auto-linking @username

Code Snippets (Multiple Languages) & Syntax Highlighting

Inline Code

$ npm install package-name

Code Blocks (Indented Style)

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|

JavaScript Example

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");

HTML Sample Code

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Sample Title</title>
    </head>
    <body>
        <h1>Sample Heading</h1>
    </body>
</html>