Skip to content

Commit

Permalink
add Markdown Live Preview to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
memo33 committed Dec 3, 2024
1 parent 6ff0949 commit ea6512e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/hogwarts-castle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ info:
summary: School of Witchcraft and Wizardry
warning: The castle is invisible to Muggles.
conflicts: Incompatible with Saruman's Isengard Tower
description: >
description: |
The school is located in the Scottish Highlands.
It was founded more than 1000 years ago.
Expand Down
12 changes: 4 additions & 8 deletions docs/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ info:
summary: School of Witchcraft and Wizardry
warning: The castle is invisible to Muggles.
conflicts: Incompatible with Saruman's Isengard Tower
description: >
description: |
The school is located in the Scottish Highlands.
It was founded more than 1000 years ago.
Expand All @@ -286,14 +286,10 @@ info:
website: "https://en.wikipedia.org/wiki/Hogwarts"
```

?> The multi-line character `>` in YAML files controls text wrapping.
See the [YAML format](https://en.wikipedia.org/wiki/YAML#Basic_components).
Useful alternatives can be `|` or `>-`.
It is important to pick a suitable text wrapping mode for the style of your `description` in oder to preserve paragraphs.
Otherwise, all text could end up being displayed on a single line.
?> The `description` and other text fields use **Markdown** syntax for styling.
You can use the [Markdown Live Preview](https://markdownlivepreview.com/) to see how your text will be displayed.

?> Use the syntax `` `pkg=hagrid:whomping-willow` `` to refer to another package from within the description or other text fields
in order to render a link to the package.
?> Use the syntax `` `pkg=hagrid:whomping-willow` `` in order to render a link to another package.

## Complete example

Expand Down

0 comments on commit ea6512e

Please sign in to comment.