From 2b1f52a99dd3d9880e3d4e836f4355244c476a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 16 Aug 2025 05:46:44 +0300 Subject: [PATCH] mention lightboxes in babycode guide --- app/templates/babycode.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/babycode.html b/app/templates/babycode.html index fdd7f3c..e8ca82f 100644 --- a/app/templates/babycode.html +++ b/app/templates/babycode.html @@ -128,6 +128,7 @@

Text inside the tag becomes the alt text. The attribute is the image URL.

Images will always break up a paragraph and will get scaled down to a maximum of 400px. The text inside the tag will become the image's alt text.

+

Multiple images attached to a post can be clicked to open a dialog to view them.

Adding code blocks

@@ -153,11 +154,12 @@

Spoilers

- {% set spoiler = "[spoiler=My spoiler tag]My hidden content[/spoiler]" %} + {% set spoiler = "[spoiler=Major Metal Gear Spoilers]Snake dies[/spoiler]" %}

You can make a section collapsible by using the [spoiler] tag:

{{ ("[code]\n%s[/code]" % spoiler) | babycode | safe }} Will produce: {{ spoiler | babycode | safe }} + All other tags are supported inside spoilers.
{% endset %} {{ sections | safe }}