Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anydown/maildown


https://github.com/anydown/maildown

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

# これは?

Markdown から日本企業っぽいメールに変換します。

[![dependencies Status](https://david-dm.org/anydown/maildown/status.svg)](https://david-dm.org/anydown/maildown)

[![npm version](https://badge.fury.io/js/%40anydown%2Fmaildown.svg)](https://badge.fury.io/js/%40anydown%2Fmaildown)

# Demo

https://maildown-example.netlify.com/

![image](https://user-images.githubusercontent.com/3132889/43113200-59139640-8f34-11e8-8c5e-e3aa5326a572.png)

🤔

# NPM から利用する

`npm install @anydown/maildown`

```js
const maildown = require("@anydown/maildown");

const converted = maildown(`## test

# test

- this
- is
- test
`, {lineLength: 70});

console.log(converted);
//> ■test
//> 【test】
//>  ・this
//>  ・is
//>  ・test
```

# Options

| オプション名 | 説明 | デフォルト |
| ------------ | ---------------- | ---------- |
| lineLength | 1行の最大文字長 | 70 |

# Who uses maildown

- [Markdown to Plain](https://chrome.google.com/webstore/detail/markdown-to-plain/kcfemfieficedfhplhkmlpeddpkgiaok) : Chrome拡張 by [@mtgto](https://github.com/mtgto)
- [md2mail](https://marketplace.visualstudio.com/items?itemName=satopirka.md2mail) : VSCode拡張 by [@satopirka](https://github.com/satopirka)