{"repo":"ActuallyTaylor/SwiftHTMLToMarkdown","free":true,"listed":false,"github":"https://github.com/ActuallyTaylor/SwiftHTMLToMarkdown","clone":"git clone https://github.com/ActuallyTaylor/SwiftHTMLToMarkdown.git","description":"A simple Swift package that converts HTML into Markdown","language":"Swift","stars":58,"topics":["html","html-to-markdown","html-to-markdown-converter","htmltomarkdown","markdown","swift"],"license":"MIT","category":"productivity","readme_excerpt":"Swift HTML - Markdown This package allows you to quickly convert HTML code into Markdown. Normally you want to go from Markdown - HTML and there are a thousand packages and parsers to do that. However, what if the service you are using (like Mastodon) provides everything in HTML but you want to parse it in Markdown? Well you need to convert it. This package allows you to do just that! Supported Flavors of HTML Flavor Support -------------------- --------------------------------------------------- Mastodon Status HTML (MastodonHTML) ✅ Basic HTML (BasicHTML) ⚠️ (Almost fully supported, tables are not) How to use Using the library is pretty simple. The first step is to pick which HTML flavor you are going to be converting. If you are converting a Basic HTML document you can use the BasicHTML class. For Mastodon statuses you can use the MastodonHTML class. Once you have picked out the class you will be using, the following code is all you need!","default_branch":null,"files":null,"tree":[],"storefront":"/r/ActuallyTaylor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ActuallyTaylor/SwiftHTMLToMarkdown/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."}