https://github.com/marcodpt/html2md
A deno script to convert a section of a HTML page to markdown
https://github.com/marcodpt/html2md
Last synced: 7 months ago
JSON representation
A deno script to convert a section of a HTML page to markdown
- Host: GitHub
- URL: https://github.com/marcodpt/html2md
- Owner: marcodpt
- License: mit
- Created: 2022-07-24T23:13:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T01:50:27.000Z (over 3 years ago)
- Last Synced: 2025-03-03T04:15:56.501Z (12 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html2md
A deno script to convert a section of a HTML page to markdown
## Usage with binary for linux 64 bits
```
./html2md [url]
```
## Usage with deno
```
deno run --allow-write --allow-net index.js [url]
```
## Compile with deno
```
deno compile --allow-write --allow-net index.js
```
## Be available in your linux terminal commands
```
sudo cp html2md /usr/bin/
```
## Command Line options
### -o --output
Especify file output.
If nothing is passed it uses stdout.
### -s --selector
DOM query selector of the section of the page to convert to markdown.
If nothing is passed the hole page will be converted.
### -i --ignore
DOM query selector of elements to be removed before convert.
All matches will be removed.
### -f --footnote
DOM query selector of footnotes in text.
It will follow the link to get the text.