#markdown #html-markdown-converter #html

bin+lib html2md-bulletty

Library and binary to convert simple html documents into markdown

1 unstable release

0.2.15 Nov 7, 2025

#1872 in Development tools

Download history 58/week @ 2025-11-02 96/week @ 2025-11-09 47/week @ 2025-11-16 55/week @ 2025-11-23 77/week @ 2025-11-30 126/week @ 2025-12-07 105/week @ 2025-12-14 43/week @ 2025-12-21 59/week @ 2025-12-28 82/week @ 2026-01-04

298 downloads per month
Used in bulletty

GPL-3.0+

55KB
851 lines

HTML2MD

Library to convert simple html documents into markdown flavor. Implements markdown as written on its inception page.

Features

Currently supported:

  • Lists (and inner lists)
  • Headers
  • Quotes (and inner quotes)
  • Paragraphs
  • Horizontal rulers
  • Images and links
  • Tables
  • Formatting (bold, italic, strikethrough, underline)
  • Code

Limitations

  • no markdown flavors support (-/+ unordered list styles, ##/== headers etc.)
  • doesn't yet detect code style

Used libraries

html5ever - Servo engine HTML parsing library, used to convert html input to DOM

regex - PCRE support in Rust, used to correct whitespaces

Contributions

You may create merge request or bug/enhancement issue right here on GitLab, or send formatted patch via e-mail. For details see CONTRIBUTING.md file in this repo.

License

Copyright (C) 2018-2019  Oleg `Kanedias` Chernovskiy

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

See COPYING.md for special terms on dual-licensing.

Dependencies

~4–16MB
~149K SLoC