# html2markdown **Repository Path**: mirrors_barseghyanartur/html2markdown ## Basic Information - **Project Name**: html2markdown - **Description**: Conservatively convert html to markdown - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-11-23 - **Last Updated**: 2026-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ============= html2markdown ============= .. image:: https://travis-ci.com/dlon/html2markdown.svg?branch=master :target: https://travis-ci.com/dlon/html2markdown **Experimental** **Purpose**: Converts html to markdown while preserving unsupported html markup. The goal is to generate markdown that can be converted back into html. This is the major difference between html2markdown and html2text. The latter doesn't purport to be reversible. Usage example ============= :: import html2markdown print html2markdown.convert('
Here is some code')
Output::
## Test
Here is some code
Information and caveats
=======================
Does not convert the content of block-type tags other than ```` -- such as ``
this is stuff. stuff
`` **Result**: ``this is stuff. __stuff__`` (surrounded by a newline on either side) **Input**: ``strike through some text here`` **Result**: ``strike __through__ some text here`` Except in unprocessed block-type tags, formatting characters are escaped ------------------------------------------------------------------------ **Input**: ``**escape me?**
`` (in html, we would use \ here) **Result**: ``\*\*escape me?\*\*`` **Input**: ``**escape me?**`` **Result**: ``\*\*escape me?\*\*`` **Input**: ``