FreeBSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.42.2.41.2.22.1.42.2.4
FreeBSD:14:quarterly2.2.42.2.4n/a2.1.42.2.4
FreeBSD:15:latest2.2.42.2.4n/a2.1.42.1.4
FreeBSD:15:quarterly2.2.42.2.4n/an/an/a
FreeBSD:16:latest2.2.42.2.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

All build dependencies 15
All run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
marko-2.2.4.tar.gz151013c042c66f835425673123d7536b39b4660de3b68e30078c70fd26245b31170683
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
a42103a510 Po-Chuan Hsieh textproc/py-marko: Update to 2.2.4
Changes: https://github.com/frostming/marko/releases
69a2343ea9 Po-Chuan Hsieh textproc/py-marko: Update to 2.2.3
Changes: https://github.com/frostming/marko/releases