Skip to content

iamcco/htom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htom

convert html to markdown

  • list support
  • nested list support
  • task list support
  • table support
  • ...

usage

install

yarn add htom

# or

npm install htom

usage

const htom = require('htom').default;

htom('<h1> test html </h1>').then(markdown => console.log(markdown));

build & test

git clone https://github.com/iamcco/htom.git
cd htom
npm install

# build
npm run build

#test
npm run test

screenshot

html for convert:

html

output markdown:

markdown