Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eyhn/echo


https://github.com/eyhn/echo

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# echo

基于 `markdown-it` 的颜艺 `markdown` 解析器

# 特殊操作

下面是本解析器有异于标准 `markdown` 的特殊操作。

ruby

markdown:

``` markdown
*马猴烧酒^まほうしょうじょ*

*滑稽^zui qiang*
```

HTML:

``` html

马猴烧酒まほうしょうじょ


滑稽zui qiang


```

范例:

马猴烧酒まほうしょうじょ


滑稽zui qiang

sub

markdown:

``` markdown
H~2~0
```

HTML:

``` html

H20


```

范例:

H20

sup

markdown:

``` markdown
29^th^
```

HTML:

``` html

29th


```

范例:

29th

footnote

markdown:

``` markdown
Here is a footnote reference,[^1] and another.[^longnote]

[^1]: Here is the footnote.

[^longnote]: Here's one with multiple blocks.

Subsequent paragraphs are indented to show that they
belong to the previous footnote.
```

HTML:

``` html

Here is a footnote reference,[1] and another.[2]





  1. Here is the footnote. ↩︎




  2. Here’s one with multiple blocks.


    Subsequent paragraphs are indented to show that they
    belong to the previous footnote. ↩︎



```

范例:

Here is a footnote reference,[1] and another.[2]





  1. Here is the footnote. ↩︎




  2. Here’s one with multiple blocks.


    Subsequent paragraphs are indented to show that they
    belong to the previous footnote. ↩︎



deflist

markdown:

``` markdown
Term 1

: Definition 1

Term 2 with *inline markup*

: Definition 2

{ some code, part of Definition 2 }

Third paragraph of definition 2.

Term 1
~ Definition 1

Term 2
~ Definition 2a
~ Definition 2b
```

HTML:

``` html


Term 1


Definition 1



Term 2 with inline markup


Definition 2


  { some code, part of Definition 2 }


Third paragraph of definition 2.



Term 1


Definition 1



Term 2


Definition 2a




Definition 2b




```

范例:


Term 1


Definition 1



Term 2 with inline markup


Definition 2


  { some code, part of Definition 2 }


Third paragraph of definition 2.



Term 1


Definition 1



Term 2


Definition 2a




Definition 2b



abbr

markdown:

``` markdown
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```

HTML:

``` html

The HTML specification
is maintained by the W3C.


```

范例:

The HTML specification
is maintained by the W3C.

emoji

markdown:

``` markdown
:) :(
```

HTML:

``` html

😃 😦


```

范例:

😃 😦

container

markdown:

``` markdown
::: warning
*here be dragons*
:::
```

HTML:

``` html


here be dragons

```

范例:


here be dragons

ins

markdown:

``` markdown
++inserted++
```

HTML:

``` html

inserted


```

范例:

inserted

mark

markdown:

``` markdown
==marked==
```

HTML:

``` html

marked


```

范例:

marked

anchor

markdown:

``` markdown
# 123
```

HTML:

``` html

123


```

范例:

123

highlight

详情见 [highlight.js](https://highlightjs.org/)

linkify

markdown:

``` markdown
https://github.com/EYHN/echo
```

HTML:

``` html

https://github.com/EYHN/echo


```

范例:

https://github.com/EYHN/echo

typographer

markdown:

``` markdown
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
```

HTML:

``` html

© © ® ® ™ ™ § § ±


```

范例:

© © ® ® ™ ™ § § ±

task-lists

markdown:

``` markdown
- [ ] Mercury
- [x] Venus
- [x] Earth (Orbit/Moon)
- [x] Mars
- [ ] Jupiter
- [ ] Saturn
- [ ] Uranus
- [ ] Neptune
- [ ] Comet Haley
```

HTML:

``` html


  • Mercury

  • Venus

  • Earth (Orbit/Moon)

  • Mars

  • Jupiter

  • Saturn

  • Uranus

  • Neptune

  • Comet Haley


```

范例:


  • Mercury

  • Venus

  • Earth (Orbit/Moon)

  • Mars

  • Jupiter

  • Saturn

  • Uranus

  • Neptune

  • Comet Haley