Add code snippets to long-form stories.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user