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
Built Distribution
File details
Details for the file markline-0.3.3.tar.gz
.
File metadata
- Download URL: markline-0.3.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a138ce0ed1ae4af56615e65c3707348754b55d5f595ee1473e9654f46d8aaa |
|
MD5 | 71f427bdc177da8ca4d9e889a30c4ab5 |
|
BLAKE2b-256 | 9887edc6cc7b27441cb11d14af3547d0b09cb5e2f9d12fa445f6fffd3b27f69d |
File details
Details for the file markline-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: markline-0.3.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e35634c7be8a27cc336d1ff1f03ba62395fcb498a72e1a9fb35a8bb62cab842 |
|
MD5 | 2de6f837f5001493044c87abb8a62b5c |
|
BLAKE2b-256 | 274ca95982c3ee1c4159ba082ef8ca9c9ce1b58aa065e587d3b15e05d4abb5e7 |