take two on escaping shortcode
Some checks failed
deploy-docs / build-and-deploy (push) Failing after 12s
Some checks failed
deploy-docs / build-and-deploy (push) Failing after 12s
This commit is contained in:
@@ -16,8 +16,8 @@ Custom shortcodes defined in `layouts/shortcodes/`.
|
||||
* **`include`**: Inject the contents of external files into your page. Supports local Hugo content paths and absolute paths mounted from the host (e.g., `/srv/configs/...`, `/srv/dev/hugo/wiki/...`).
|
||||
|
||||
**CRITICAL: Angle Brackets (`< >`) vs. Percentage Signs (`% %`)**
|
||||
* Use **`{{% %}}`** when you want the included text to be **parsed as Markdown**. This is required when including other `.md` files so their headers, lists, and links render properly.
|
||||
* Use **`{{< >}}`** to output the raw text directly *without* Markdown processing.
|
||||
* Use **`{{%/* %*/}}`** when you want the included text to be **parsed as Markdown**. This is required when including other `.md` files so their headers, lists, and links render properly.
|
||||
* Use **`{{</* >*/}}`** to output the raw text directly *without* Markdown processing.
|
||||
|
||||
**Example 1: Including another Markdown file**
|
||||
```markdown
|
||||
|
||||
Reference in New Issue
Block a user