lizheng0515 / markdown-read

Read markdown from URL

Home Page:https://devtool.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown Read

Read Markdown from URL

Usage

$ npm i -g markdown-read

# Turn current page to markdown
$ markdown https://www.example.com

API

const { readMd, readHtml, readMdFromText } = require('markdown-read')

// read markdown from url
readMd('https://www.example.com').then(md => console.log(md))

// read readbility content from url
readHtml('https://www.example.com').then(md => console.log(html))

// read markdown from html
const md = readMdFromText('<h1>hello, world</h1>')

About

Read markdown from URL

https://devtool.tech


Languages

Language:TypeScript 83.1%Language:JavaScript 16.9%