From de1be492244eab01f1b18541567e89f5638ac070 Mon Sep 17 00:00:00 2001 From: Albina Starykova Date: Wed, 28 Oct 2026 10:46:48 +0200 Subject: [PATCH] Convert page Markdown responses from the rendered HTML --- apps/core/templates/components/feedback.html | 2 +- .../components/language_selector.html | 2 +- .../jinja2/llms_txt/frontmatter.md.jinja | 12 +++++ apps/llms_txt/jinja2/llms_txt/page.md.jinja | 14 +---- .../jinja2/llms_txt/page_from_html.md.jinja | 6 +++ apps/llms_txt/mixins.py | 28 +++++++++- apps/llms_txt/tests/test_autoescape.py | 8 ++- apps/llms_txt/tests/test_mixins.py | 51 ++++++++++++++++++- 8 files changed, 105 insertions(+), 18 deletions(-) create mode 100644 apps/llms_txt/jinja2/llms_txt/frontmatter.md.jinja create mode 100644 apps/llms_txt/jinja2/llms_txt/page_from_html.md.jinja diff --git a/apps/core/templates/components/feedback.html b/apps/core/templates/components/feedback.html index 14cf82df..ce11121b 100644 --- a/apps/core/templates/components/feedback.html +++ b/apps/core/templates/components/feedback.html @@ -1,6 +1,6 @@ {% load i18n %} -
+