From 923bc091dd28b90ce0dc564b9ec8908609f4ae8a Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sat, 19 Dec 2020 20:04:23 +0000 Subject: [PATCH] Add py-markdown-it-py 0.6.0 markdown-it-py is a Python port of markdown-it, and some of its associated plugins. - Follows the CommonMark spec for baseline parsing - Configurable syntax: you can add new rules and even replace existing ones. - Pluggable: Adds syntax extensions to extend the parser (see the plugin list). - High speed (see our benchmarking tests) - Safe by default WWW: https://github.com/executablebooks/markdown-it-py --- textproc/Makefile | 1 + textproc/py-markdown-it-py/Makefile | 24 ++++++++++++++++++++++++ textproc/py-markdown-it-py/distinfo | 3 +++ textproc/py-markdown-it-py/pkg-descr | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 textproc/py-markdown-it-py/Makefile create mode 100644 textproc/py-markdown-it-py/distinfo create mode 100644 textproc/py-markdown-it-py/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index ee26f72f26a0..fb9692742f25 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1310,6 +1310,7 @@ SUBDIR += py-m2r SUBDIR += py-mako SUBDIR += py-markdown + SUBDIR += py-markdown-it-py SUBDIR += py-markdown-math SUBDIR += py-markdown2 SUBDIR += py-markuppy diff --git a/textproc/py-markdown-it-py/Makefile b/textproc/py-markdown-it-py/Makefile new file mode 100644 index 000000000000..ec88eb1a3f12 --- /dev/null +++ b/textproc/py-markdown-it-py/Makefile @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= markdown-it-py +PORTVERSION= 0.6.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python port of markdown-it + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19<21:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mdit-py-plugins>=0.2.1<0.3:textproc/py-mdit-py-plugins@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/textproc/py-markdown-it-py/distinfo b/textproc/py-markdown-it-py/distinfo new file mode 100644 index 000000000000..c9a561d187bd --- /dev/null +++ b/textproc/py-markdown-it-py/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1608366078 +SHA256 (markdown-it-py-0.6.0.tar.gz) = 1c1413df39ef7baa55bca755d32c565d72e8b4114dcdd3da65eb468a61886659 +SIZE (markdown-it-py-0.6.0.tar.gz) = 55198 diff --git a/textproc/py-markdown-it-py/pkg-descr b/textproc/py-markdown-it-py/pkg-descr new file mode 100644 index 000000000000..d6200451b1b6 --- /dev/null +++ b/textproc/py-markdown-it-py/pkg-descr @@ -0,0 +1,9 @@ +markdown-it-py is a Python port of markdown-it, and some of its associated +plugins. +- Follows the CommonMark spec for baseline parsing +- Configurable syntax: you can add new rules and even replace existing ones. +- Pluggable: Adds syntax extensions to extend the parser (see the plugin list). +- High speed (see our benchmarking tests) +- Safe by default + +WWW: https://github.com/executablebooks/markdown-it-py