diff --git a/app/templates/guides/user-guides/99-babycode.html b/app/templates/guides/user-guides/99-babycode.html index 3bb137a..ca9e9a0 100644 --- a/app/templates/guides/user-guides/99-babycode.html +++ b/app/templates/guides/user-guides/99-babycode.html @@ -95,12 +95,12 @@
Line breaks in babycode work like Markdown: to start a new paragraph, use two line breaks:
{{ '[code]paragraph 1\n\nparagraph 2[/code]' | babycode | safe }} - Will produce:To break a line without starting a new paragraph, end a line with two spaces:
{{ '[code]paragraph 1 \nstill paragraph 1[/code]' | babycode | safe }} That will produce:Additionally, the following tags will break into a new paragraph:
[code] (code block, not inline);Loose links (starting with http:// or https://) will automatically get converted to clickable links. To add a label to a link, use[url=https://example.com]Link label[/url]:
+
Loose links (starting with http:// or https://) will automatically get converted to clickable links. To add a label to a link, use [url=https://example.com]Link label[/url]:
Link label
To add an image to your post, use the [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.