telegraph.md
Version:
Markdown powered pages for Telegra.ph
41 lines (35 loc) • 926 B
Markdown
# 📝 telegraph.md
[](https://www.npmjs.com/package/telegraph.md)
[](https://travis-ci.org/telegraf/telegraph.md)
Markdown powered pages for [Telegra.ph](http://telegra.ph/api)
## Installation
```js
$ npm install telegraph.md --save
```
## Example
```js
const md = require('telegraph.md')
const nodes = md('Emphasis, aka italics, with *asterisks* or _underscores_.')
// [
// {
// "tag": "p",
// "children": [
// "Emphasis, aka italics, with ",
// {
// "tag": "em",
// "children": [
// "asterisks"
// ]
// },
// " or ",
// {
// "tag": "em",
// "children": [
// "underscores"
// ]
// },
// "."
// ]
// }
// ]
```