Extract the content from an HTML document to Markdown (removing non-content sections and tags)
Add html2markdown
to your list of dependencies in mix.exs
:
def deps do
[
{:html2markdown, "~> 0.1.5"}
]
end
Html2Markdown.convert(html)
Docs can be found at https://hexdocs.pm/html2markdown.