{"repo":"ThatXliner/unmarkd","free":true,"listed":false,"github":"https://github.com/ThatXliner/unmarkd","clone":"git clone https://github.com/ThatXliner/unmarkd.git","description":"An extremely configurable markdown reverser for Python3.","language":"Python","stars":17,"topics":["python3","markdown","markdown-reverser","reverse-engineering","parser","reverse-markdown","reverser","python","html","flexible"],"license":"GPL-3.0","category":"security-tools","readme_excerpt":"NOTE: This project is maintained. While it may seem inactive, it is because there is nothing to add. If you want an enhancement or want to file a bug report, please go to the issues. 🔄 Unmarkd A markdown reverser. --- Unmarkd is a BeautifulSoup-powered Markdown reverser written in Python and for Python. Why This is created as a StackSearch (one of my other projects) dependency. In order to create a better API, I needed a way to reverse HTML. So I created this. There are similar projects (written in Ruby) but I have not found any written in Python (or for Python) later I found a popular library, html2text. Installation You know the drill Comparison TL;DR: Html2Text is fast. If you don't need much configuration, you could use Html2Text for the little speed increase. Click to expand Speed TL;DR: Unmarkd Html2Text This is Unmarkd's strong point. In Html2Text, you only have a limited set of options. In Unmarkd, you can subclass the BaseUnmarker and implement conversions for new tags (e.g. ), etc. In my opinion, it's much easier to extend and configure Unmarkd. Unmarkd was originally written as a StackSearch dependancy. Html2Text has no options for configuring parsing of code blocks. Unmarkd does Documentation Here's an example of basic usage or something more complex (shamelessly taken from here): and the output: js var foo = 'bar'; function baz(s) { return foo + ':' + s; } Scope and limitations Unmarkd reverses HTML that has a Markdown equivalent — headings, emphasis, links, ima","default_branch":null,"files":null,"tree":[],"storefront":"/r/ThatXliner","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ThatXliner/unmarkd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}