How to use the markdownify.ATX function in markdownify

To help you get started, we’ve selected a few markdownify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matthewwithanm / python-markdownify / tests / test_conversions.py View on Github external
def test_atx_headings():
    assert md('<h1>Hello</h1>', heading_style=ATX) == '# Hello\n\n'
    assert md('<h2>Hello</h2>', heading_style=ATX) == '## Hello\n\n'
github matthewwithanm / python-markdownify / tests / test_conversions.py View on Github external
def test_atx_headings():
    assert md('<h1>Hello</h1>', heading_style=ATX) == '# Hello\n\n'
    assert md('<h2>Hello</h2>', heading_style=ATX) == '## Hello\n\n'

markdownify

Convert HTML to markdown.

MIT
Latest version published 3 months ago

Package Health Score

83 / 100
Full package analysis

Similar packages