No description
  • Rust 61.9%
  • HTML 38.1%
Find a file
2025-12-27 20:04:04 +00:00
.vscode Fix bug with anchors messing up styles 2018-12-11 00:06:07 +03:00
src Merge branch 'master' into 'master' 2025-12-27 20:04:04 +00:00
test-samples Fix crash on tables with vertical header. Make all structs public. Fixes #4 2021-07-16 21:21:27 +03:00
tests Enclose link destinations with whitespace in <> 2025-02-06 15:12:35 +02:00
.gitignore Add gitignore 2018-03-24 18:41:06 +03:00
.gitlab-ci.yml Fix warnings, add instagram iframes 2019-08-20 09:47:02 +03:00
AUTHORS.md Add AUTHORS page 2018-03-31 13:44:39 +03:00
Cargo.toml fix build failed on android termux 2025-03-03 14:21:54 +08:00
CONTRIBUTING.md Align to FOSS guidelines for this project 2018-03-31 13:41:44 +03:00
COPYING.md Licensing clause for tp-note 2024-06-20 13:06:41 +03:00
LICENSE Align to FOSS guidelines for this project 2018-03-31 13:41:44 +03:00
README.md Licensing clause for tp-note 2024-06-20 13:06:41 +03:00

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.