Provides Anki style html → markdown and vice versa using unifiedjs
.
Exports class Converter
with methods html_to_markdown(html: string): string
and markdown_to_html(md: string): string
.
- 230826:
html_to_markdown
now only returns the markdown string (earlier returned array of[markdown, ordinal]
), added config optionstightenLists
(whentrue
removes empty line before tight lists) andlistItemIndentLeadOnly
(whentrue
in conjunction withlistItemIndent
:"tab"
will indent list items at multiples of 4 spaces but one space afte the bullet). Adjust spread logic to not countli
as blocks (as that will mean all nested lists always leads to spread). - 230925: Fix media tag "mute" bug.