From bbce14f484c0e7f8be5c44b0214ed8b7e110440b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 1 Apr 2026 13:35:24 +0300 Subject: [PATCH] python-markdown: bump to 3.10.2 Changelog: https://github.com/Python-Markdown/markdown/blob/master/docs/change_log/release-3.10.md Signed-off-by: Alexandru Ardelean --- lang/python/python-markdown/Makefile | 4 ++-- lang/python/python-markdown/test.sh | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 lang/python/python-markdown/test.sh diff --git a/lang/python/python-markdown/Makefile b/lang/python/python-markdown/Makefile index 5c288dda3f..7f3977ca2d 100644 --- a/lang/python/python-markdown/Makefile +++ b/lang/python/python-markdown/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-markdown -PKG_VERSION:=3.10 +PKG_VERSION:=3.10.2 PKG_RELEASE:=1 PYPI_NAME:=markdown -PKG_HASH:=37062d4f2aa4b2b6b32aefb80faa300f82cc790cb949a35b8caede34f2b68c0e +PKG_HASH:=994d51325d25ad8aa7ce4ebaec003febcce822c3f8c911e3b17c52f7f589f950 PKG_MAINTAINER:=Josef Schlehofer PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/python-markdown/test.sh b/lang/python/python-markdown/test.sh new file mode 100755 index 0000000000..3dc856a0e3 --- /dev/null +++ b/lang/python/python-markdown/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +[ "$1" = python3-markdown ] || exit 0 + +python3 - << 'EOF' + +import markdown + +# Basic conversion +result = markdown.markdown("# Hello World") +assert result == "

Hello World

", f"got: {result}" + +# Bold and italic +result = markdown.markdown("**bold** and *italic*") +assert "bold" in result +assert "italic" in result + +# List +result = markdown.markdown("- item1\n- item2") +assert "
    " in result +assert "
  • item1
  • " in result + +EOF