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 <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-01 13:35:24 +03:00
committed by Alexandru Ardelean
parent 961b94904a
commit bbce14f484
2 changed files with 25 additions and 2 deletions

View File

@@ -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 <pepe.schlehofer@gmail.com>
PKG_LICENSE:=BSD-3-Clause

View File

@@ -0,0 +1,23 @@
#!/bin/sh
[ "$1" = python3-markdown ] || exit 0
python3 - << 'EOF'
import markdown
# Basic conversion
result = markdown.markdown("# Hello World")
assert result == "<h1>Hello World</h1>", f"got: {result}"
# Bold and italic
result = markdown.markdown("**bold** and *italic*")
assert "<strong>bold</strong>" in result
assert "<em>italic</em>" in result
# List
result = markdown.markdown("- item1\n- item2")
assert "<ul>" in result
assert "<li>item1</li>" in result
EOF