Skip to main content

Convert Markup to Markdown with a transformation pipeline.

Project description

Markline converts HTML to Markdown and supports transformation methods borrowed from data engineering concepts. The goal of this project is to provide a simple API that renders HTML to Markdown for note management applications such as Logseq.

Getting Started

Installation

Markline is available on PyPI:

python -m pip install markline

Dependencies

Markdown rendering is performed with Pandoc so the pandoc command-line tool needs to be available in your environment. You may follow the official installation instructions which are OS-dependent, or if you are a conda user, with the following command:

conda install -c conda-forge pandoc

Beautiful Soup supports the HTML parser included in Python's standard library, but it also supports a number of third-party Python parsers. One is the lxml parser which provides a good balance between performance and accuracy. More information about the parsers can be found in the Beautiful Soup documentation.

For conda users, you can install the lxml package with the following command:

conda install -c conda-forge lxml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markline-0.3.3.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

markline-0.3.3-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page