From 2fc36e151300550b155fe37713429e365e8ec776 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 23 Jul 2026 00:19:28 +0200 Subject: Add Markdown figure support This adds a project-local Markdown figure plugin so blog posts can use semantic `
` blocks with arbitrary CSS classes, optional captions, and Markdown inside captions. The image CSS is also updated so figures share the existing width, breakout, float, centering, and rounded-image utilities while keeping captions styled and spaced consistently with the rest of the article layout. --- packages/markdown-figure/setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/markdown-figure/setup.py (limited to 'packages/markdown-figure/setup.py') diff --git a/packages/markdown-figure/setup.py b/packages/markdown-figure/setup.py new file mode 100644 index 0000000..a81f66e --- /dev/null +++ b/packages/markdown-figure/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup + +setup( + name="lektor-markdown-figure", + version="0.1.0", + py_modules=["lektor_markdown_figure"], + entry_points={ + "lektor.plugins": [ + "markdown-figure = lektor_markdown_figure:MarkdownFigurePlugin", + ] + }, + install_requires=[], +) -- cgit v1.3.1