markdown-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

markdown-js

代码生成Markdown文本 - The code generates markdown text

使用

Table

const table = new Table()

table.addHeader('name', HeaderStyle.LEFT)
table.addHeader('age', HeaderStyle.CENTER)
table.addHeader('school', HeaderStyle.RIGHT)

table.addRow('wangzhen', '21', '郑州市回民中学')
table.addRow('liupei', '20', '郑州市第四中学')
table.generate()

// output
/**
|name|age|school|
|:--|:--:|--:|
|wangzhen|21|郑州市回民中学|
|liupei|20|郑州市第四中学|
*/

Bold

Bold.of('wangzhen').generate() // output -> **wangzhen**

当前进度

标签 是否支持
table Y
Bold Y
Emphasize Y
Strike-through N
Inline Code N
Image N
List N
Blockquote N
H1 N
H2 N
H3 N
H4 N
H5 N
H6 N

Readme

Keywords

none

Package Sidebar

Install

npm i markdown-ts

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • hypersimon