阳光肺科

 找回密码
 立即注册

微信扫码登录

搜索

[在线工具] 完全版的markdown,注意是否完全

[复制链接]
经天纬地 发表于 2024-8-4 05:24:39 | 显示全部楼层 |阅读模式

马上注册,阅读更多内容,享用更多功能!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
https://pandao.github.io/editor.md/en.html#Features
https://pandao.github.io/editor.md/en.html#Features
Editor.md - Open source online Markdown editor. (pandao.github.io)

Features

  • Support Standard Markdown / CommonMark and GFM(GitHub Flavored Markdown);
  • Full-featured: Real-time Preview, Image (cross-domain) upload, Preformatted text/Code blocks/Tables insert, Code fold, Search replace, Read only, Themes, Multi-languages, L18n, HTML entities, Code syntax highlighting...;
  • Markdown Extras : Support ToC (Table of Contents), Emoji, Task lists, @Links...;
  • Compatible with all major browsers (IE8+), compatible Zepto.js and iPad;
  • Support identification, interpretation, fliter of the HTML tags;
  • Support TeX (LaTeX expressions, Based on KaTeX), Flowchart and Sequence Diagram of Markdown extended syntax;
  • Support AMD/CMD (Require.js & Sea.js) Module Loader, and Custom/define editor plugins;

Editor.md

Table of Contents

H1 header

H2 header

H3 header

H4 header

H5 header
H6 header

Heading 1 link Heading link

Headers (Underline)

H1 Header (Underline)

H2 Header (Underline)

Characters


Strikethrough <s>Strikethrough (when enable html tag decode.)</s>
Italic      Italic
Emphasis  Emphasis
Emphasis Italic Emphasis Italic

Superscript: X<sub>2</sub>,Subscript: O<sup>2</sup>

Abbreviation(link HTML abbr tag)

The <abbr title="Hyper Text Markup Language">HTML</abbr> specification is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.

Blockquotes

Blockquotes

Paragraphs and Line Breaks

"Blockquotes Blockquotes", Link

Links

Links with title

&lt;link&gt; : https://github.com

Reference link

GFM a-tail link @pandao

Code Blocks (multi-language) & highlighting

Inline code

$ npm install marked

Code Blocks (Indented style)

Indented 4 spaces, like &lt;pre&gt; (Preformatted Text).

&lt;?php
    echo "Hello world!";
?&gt;

Code Blocks (Preformatted text):

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

Javascript 

function test(){
        console.log("Hello world!");
}

(function(){
    var box = function(){
        return box.fn.init();
    };

    box.prototype = box.fn = {
        init : function(){
            console.log('box.init()');

                        return this;
        },

                add : function(str){
                        alert("add", str);

                        return this;
                },

                remove : function(str){
                        alert("remove", str);

                        return this;
                }
    };

    box.fn.init.prototype = box.fn;

    window.box =box;
})();

var testBox = box();
testBox.add("jQuery").remove("jQuery");

HTML code

&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;mate charest="utf-8" /&gt;
        &lt;title&gt;Hello world!&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;Hello world!&lt;/h1&gt;
    &lt;/body&gt;
&lt;/html&gt;

Images

Image:

Follow your heart.

图为:厦门白城沙滩 Xiamen

图片加链接 (Image + Link):

图为:李健首张专辑《似水流年》封面


Lists

Unordered list (-)

  • Item A
  • Item B
  • Item C

Unordered list (*)

  • Item A
  • Item B
  • Item C

Unordered list (plus sign and nested)

  • Item A
  • Item B
    • Item B 1
    • Item B 2
    • Item B 3
  • Item C
    • Item C 1
    • Item C 2
    • Item C 3

Ordered list

  1. Item A
  2. Item B
  3. Item C

Tables

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
Function name Description
help() Display the help window.
destroy() Destroy your computer!
Item Value
Computer $1600
Phone $12
Pipe $1
Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

HTML entities

© &  ¨ ™ ¡ £
& < > ¥ € ® ± ¶ § ¦ ¯ « ·

X² Y³ ¾ ¼  ×  ÷   »

18ºC  "  '

Escaping for Special Characters

*literal asterisks*

Markdown extras

GFM task list

  • [x] GFM task list 1
  • [x] GFM task list 2
  • [ ] GFM task list 3
    • [ ] GFM task list 3-1
    • [ ] GFM task list 3-2
    • [ ] GFM task list 3-3
  • [ ] GFM task list 4
    • [ ] GFM task list 4-1
    • [ ] GFM task list 4-2

Emoji mixed :smiley:

Blockquotes :star:

GFM task lists & Emoji & fontAwesome icon emoji & editormd logo emoji :editormd-logo-5x:

  • [x] :smiley: @mentions, :smiley: #refs, [links](), formatting, and <del>tags</del> supported :editormd-logo:;
  • [x] list syntax required (any unordered or ordered list supported) :editormd-logo-3x:;
  • [x] [ ] :smiley: this is a complete item :smiley:;
  • [ ] []this is an incomplete item test link :fa-star: @pandao;
  • [ ] [ ]this is an incomplete item :fa-star: :fa-gear:;
    • [ ] :smiley: this is an incomplete item test link :fa-star: :fa-gear:;
    • [ ] :smiley: this is  :fa-star: :fa-gear: an incomplete item test link;

TeX(LaTeX)

$$E=mc^2$$

Inline

$$E=mc^2$$
Inline,Inline
$$E=mc^2$$
Inline。

$$\(\sqrt{3x-1}+(1+x)^2\)$$

$$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$

FlowChart

st=&gt;start: Login
op=&gt;operation: Login operation
cond=&gt;condition: Successful Yes or No?
e=&gt;end: To admin

st-&gt;op-&gt;cond
cond(yes)-&gt;e
cond(no)-&gt;op

Sequence Diagram

Andrew-&gt;China: Says Hello 
Note right of China: China thinks\nabout it 
China--&gt;Andrew: How are you? 
Andrew-&gt;&gt;China: I am good thanks!

End

给我们建议|手机版|阳光肺科 ( 粤ICP备2020077405号-1 )

GMT+8, 2024-11-24 11:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表