概述

Document的 markdown 实例

基于 github


目录


markdown (常量)

基于 github markdown

签名


export const markdown: Document = ...

article (函数)

article

签名


export const article: Document['article'] = text => ...

v0.2.0 中添加

blockquote (函数)

blockquote 1 blockquote 2”

签名


export const blockquote: Document['blockquote'] = as => as.map(a => ...

v0.2.0 中添加

bold (函数)

bold

签名


export const bold: Document['bold'] = text => ...

v0.2.0 中添加

br (函数)

br

签名


export const br: Document['br'] = (text) => ...

v0.2.0 中添加

cite (函数)

cite

签名


export const cite: Document['cite'] = text => ...

v0.2.0 中添加

code (函数)

import a from 'a'

签名


export const code: Document['code'] = language => a => ...

v0.2.0 中添加

del (函数)

del

签名


export const del: Document['del'] = text => ...

v0.2.0 中添加

dfn (函数)

dfn

签名


export const dfn: Document['dfn'] = text => ...

v0.2.0 中添加

em (函数)

em

签名


export const em: Document['em'] = text => ...

v0.2.0 中添加

h1 (函数)

h1

签名


export const h1: Document['h1'] = title => ...

v0.2.0 中添加

h2 (函数)

h2

签名


export const h2: Document['h2'] = title => ...

v0.2.0 中添加

h3 (函数)

h3

签名


export const h3: Document['h3'] = title => ...

v0.2.0 中添加

h4 (函数)

h4

签名


export const h4: Document['h4'] = title => ...

v0.2.0 中添加

h5 (函数)

h5

签名


export const h5: Document['h5'] = title => ...

v0.2.0 中添加

h6 (函数)

h6

签名


export const h6: Document['h6'] = title => ...

v0.2.0 中添加

hr (函数)


签名


export const hr: Document['hr'] = () => ...

v0.2.0 中添加

img (函数)

img

签名


export const img: Document['img'] = (text, href) => ...

v0.2.0 中添加

ins (函数)

ins

签名


export const ins: Document['ins'] = text => ...

v0.2.0 中添加

italic (函数)

italic

签名


export const italic: Document['italic'] = text => ...

v0.2.0 中添加

link (函数)

link

签名


export const link: Document['link'] = (text, href) => ...

v0.2.0 中添加

mark (函数)

mark

签名


export const mark: Document['mark'] = text => ...

v0.2.0 中添加

ol (函数)

  1. ol1
  2. ol2”

签名


export const ol: Document['ol'] = as => as.map(a => ...

v0.2.0 中添加

p (函数)

p

签名


export const p: Document['p'] = text => ...

v0.2.0 中添加

q (函数)

‘q’

签名


export const q: Document['q'] = text => ...

v0.2.0 中添加

section (函数)

section

签名


export const section: Document['section'] = text => ...

v0.2.0 中添加

table (函数)

head1 head2
11 12
21 22

签名


export const table: Document['table'] = (as: string[][]) => ...

v0.2.0 中添加

ul (函数)

  • ul1
  • ul2”

签名


export const ul: Document['ul'] = as => as.map(a => ...

v0.2.0 中添加