How to use the markdownify.ATX_CLOSED 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_closed_headings():
    assert md('<h1>Hello</h1>', heading_style=ATX_CLOSED) == '# Hello #\n\n'
    assert md('<h2>Hello</h2>', heading_style=ATX_CLOSED) == '## Hello ##\n\n'
github matthewwithanm / python-markdownify / tests / test_conversions.py View on Github external
def test_atx_closed_headings():
    assert md('<h1>Hello</h1>', heading_style=ATX_CLOSED) == '# Hello #\n\n'
    assert md('<h2>Hello</h2>', heading_style=ATX_CLOSED) == '## Hello ##\n\n'

markdownify

Convert HTML to markdown.

MIT
Latest version published 1 month ago

Package Health Score

88 / 100
Full package analysis

Similar packages