textproc/py-marko 2.2.4
Markdown parser with high extensibility
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
a42103a510- License
- MIT
- Categories
- textproc, python
- Package size
- 108.9 KiB, 551.5 KiB installed
Description
Marko is a markdown parser written in pure Python that complies with CommonMark's spec v0.30. It is designed to be highly extensible.
Among all implementations of Python's markdown parser, it is a common issue that user can't easily extend it to add his own features. Furthermore, Python-Markdown and mistune don't comply with CommonMark's spec. It is a good reason for me to develop a new markdown parser.
Respecting that Marko complies with CommonMark's spec at the same time, which is a super complicated spec, Marko's performance will be affected. However, using a parser which doesn't comply with the CommonMark spec may give you unexpected rendered results from time to time. A benchmark result shows that Marko is 3 times slower than Python-Markdown, but a bit faster than Commonmark-py, much slower than mistune. If performance is a bigger concern to you than spec compliance, you'd better choose another parser.
Install
As a binary package — by origin, or by package name:
pkg install textproc/py-marko
pkg install py312-marko
From the ports tree:
cd /usr/ports/textproc/py-marko/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-marko>0:textproc/py-marko
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.2.4 | 2.2.4 | 1.2.2 | 2.1.4 | 2.2.4 |
| FreeBSD:14:quarterly | 2.2.4 | 2.2.4 | n/a | 2.1.4 | 2.2.4 |
| FreeBSD:15:latest | 2.2.4 | 2.2.4 | n/a | 2.1.4 | 2.1.4 |
| FreeBSD:15:quarterly | 2.2.4 | 2.2.4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.2.4 | 2.2.4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}pdm-backend>=0: devel/py-pdm-backend
The full lists below include those, and their dependencies in turn.
All build dependencies 15
All run dependencies 7
Required by 21
- devel/py-frictionless
- devel/py-livemark
- textproc/py-docling
- textproc/py-docling-agent
- textproc/py-docling-analysis-framework
- textproc/py-docling-cvat-tools
- textproc/py-docling-demo
- textproc/py-docling-enhanced
- textproc/py-docling-enhanced-onnx
- textproc/py-docling-eval
- textproc/py-docling-glm-ocr
- textproc/py-docling-google-ocr
- textproc/py-docling-graph
- textproc/py-docling-haystack
- textproc/py-docling-hierarchical-pdf
- textproc/py-docling-langchain
- textproc/py-docling-litellm-picture-description
- textproc/py-docling-ocr-mistral
- textproc/py-docling-ocr-onnxtr
- textproc/py-docling-sdg
- textproc/py-extended-docling
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| marko-2.2.4.tar.gz | 151013 | c042c66f835425673123d7536b39b4660de3b68e30078c70fd26245b31170683 |
Master sites 1
- PYPI