Skip to content

Commit 08fc2f7

Browse files
q-wertzquachpas
authored andcommitted
Fix broken codeblock
1 parent f0e8d68 commit 08fc2f7

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,8 @@ graph TD;
209209
gls --> at-syntax;
210210
```
211211

212-
Usually, you will want to use Typst reference syntax (`@` syntax). This is the most practical way to reference an entry. By default, some shorthands are made available: plural, capitalize, capitalized plural, short and long. More are available: description, longplural and custom corresponding respectively to `@key:description`, `@key:longplural` and `@key:custom`.
212+
Usually, you will want to use Typst reference syntax (`@` syntax). This is the most practical way to reference an entry. By default, some shorthands are made available: plural, capitalize, capitalized plural, short and long.
213213

214-
This setting is managed when you print the glossary
215-
```typ
216-
print-glossary(
217-
entry-list,
218-
// default shorthands
219-
shorthands: ("plural", "capitalize", "capitalize-plural", "short", "long"),
220-
)
221214
```typ
222215
// Prints the full version on first usage, short afterwards
223216
@oidc
@@ -227,6 +220,17 @@ print-glossary(
227220
@oidc:pl
228221
```
229222

223+
More are available: description, longplural and custom corresponding respectively to `@key:description`, `@key:longplural` and `@key:custom`.
224+
225+
This setting is managed when you print the glossary
226+
```typ
227+
print-glossary(
228+
entry-list,
229+
// default shorthands
230+
shorthands: ("plural", "capitalize", "capitalize-plural", "short", "long"),
231+
)
232+
```
233+
230234
The different interfaces have different default parameters which you should keep in mind when using them. In most cases, you will not need to manually set `update: false`, unless you are using `gls` in situations that create ambiguity, e.g., using `gls` in other entries' description.
231235

232236
| Interface | `update` | `link` |

0 commit comments

Comments
 (0)