aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBrian Picciano <me@mediocregopher.com>2024-11-04 20:00:57 +0100
committerBrian Picciano <me@mediocregopher.com>2024-11-04 20:00:57 +0100
commit81bf0016b3a776732bba430872ce5719f3251e70 (patch)
tree33d922d3dd195193fceea4005f0d17bd823d5fdf /README.md
parent7ea9fb22ab67603f4bc6eb68b76c66177b434fe3 (diff)
Add heading_template to gemtext middlewareHEADmain
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
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