Add code snippets to long-form stories.

This commit is contained in:
2026-09-01 18:39:41 +03:00
parent 8ad292c793
commit 5dc1b28ffd
7 changed files with 55 additions and 9 deletions
+10
View File
@@ -17,6 +17,16 @@ Posts can include one JPEG, PNG, or WebP image up to 8 MB. Images are converted
Long posts can also include multiple ordered step images. Upload them under **Step images**, then place `[[image:1]]`, `[[image:2]]`, and so on directly in the article text where each repair step needs an image. Each step image supports an optional caption and opens full-size when selected.
To add a code snippet, place it between triple-backtick fences. Add an optional language name after the opening fence to label the snippet:
````text
```python
print("hello, circuit")
```
````
Code is displayed as literal text and can be copied from the article view. Image markers written inside a code fence remain literal text.
## Accounts and MFA
The initial administrator account is `admin` with password `admin`, as requested for first-run access. Sign in, scan the displayed QR code with any iPhone or Android TOTP authenticator, and change this password before exposing the service to the internet. New registrations are held for approval in **Accounts**; accepted users must enroll a TOTP authenticator before they can publish.