Skip to main content

html2md_plus 2.0.0 copy "html2md_plus: ^2.0.0" to clipboard
html2md_plus: ^2.0.0 copied to clipboard

Converts HTML to Markdown, with CommonMark, GFM tables and custom rules. A maintained successor of html2md with independent calls and bug fixes.

example/html2md_plus_example.dart

import 'package:html2md_plus/html2md_plus.dart' as html2md;

void main() {
  const html = '''
<h1>Release notes</h1>
<p>Convert <strong>HTML</strong> to <a href="https://commonmark.org">Markdown</a>.</p>
<ul>
  <li>Tables</li>
  <li>Code blocks</li>
</ul>
<pre><code class="language-dart">print('hello');</code></pre>''';

  print(html2md.convert(
    html,
    styleOptions: {'headingStyle': 'atx', 'codeBlockStyle': 'fenced'},
  ));
}
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherbadalabs.com

Converts HTML to Markdown, with CommonMark, GFM tables and custom rules. A maintained successor of html2md with independent calls and bug fixes.

Repository (GitHub)
View/report issues

Topics

#html #markdown #converter

License

BSD-2-Clause (license)

Dependencies

html

More

Packages that depend on html2md_plus