From 81bf0016b3a776732bba430872ce5719f3251e70 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 4 Nov 2024 20:00:57 +0100 Subject: Add heading_template to gemtext middleware --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 6293bd8..829157a 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,17 @@ The template will be rendered with these extra data fields: * `.Body`: A string containing all rendered HTML DOM elements. +**heading_template** + +Path to a template which will be used for rendering headings. If not given then +headings will be rendered with appropriate HTML header tags. + +The template will be rendered with these extra data fields: + +* `.Level`: Which level of heading is being rendered, 1, 2, or 3. + +* `.Text`: The text of the heading. + **link_template** Path to a template which will be used for rendering links. If not given then -- cgit v1.2.3