From fa1140895a7dc427df2515137aaea89c47a132d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Line breaks in babycode work like Markdown: to start a new paragraph, use two line breaks: To break a line without starting a new paragraph, end a line with two spaces: Additionally, the following tags will break into a new paragraph: Loose links (starting with http:// or https://) will automatically get converted to clickable links. To add a label to a link, use Loose links (starting with http:// or https://) will automatically get converted to clickable links. To add a label to a link, use To add an image to your post, use the Paragraph rules
- {{ 'paragraph 1\n\nparagraph 2' | babycode | safe }}
+ Will produce:
+ {{ 'paragraph 1\n\nparagraph 2' | babycode(true) | safe }}
- {{ 'paragraph 1 \nstill paragraph 1' | babycode | safe }}
+ {{ 'paragraph 1 \nstill paragraph 1' | babycode(true) | safe }}
[code] (code block, not inline);Links
- [url=https://example.com]Link label[/url]:
+ [url=https://example.com]Link label[/url]:
Link labelAttaching an image
[img] tag:
- [img=https://forum.poto.cafe/avatars/default.webp]the Python logo with a cowboy hat[/img]
+ [img=https://forum.poto.cafe/avatars/default.webp]the Python logo with a cowboy hat[/img]
The attribute is the image URL. The text inside the tag will become the image's alt text.
Images will always break up a paragraph and will get scaled down to a maximum of 400px. However, consecutive image tags will try to stay in one line, wrapping if necessary. Break the paragraph if you wish to keep images on their own paragraph.
Multiple images attached to a post can be clicked to open a dialog to view them.