typst / typst/typst

Content `repr` isn't always valid syntax

Open
#2,887 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good contribution scripting
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

For #outline there is a fill argument. In the docs it says:

Content to fill the space between the title and the page number. Can be set to none to disable filling.

Default: repeat(body: [.])

However, repeat(body: [.]) appears to be not valid Typst syntax. (I get an error that the argument is positional.) I think it should be repeat[.].

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the #outline documentation page at the linked URL and inspect the fill parameter example. Update the default from repeat(body: [.]) to valid Typst syntax, repeat[.], and confirm the rendered documentation no longer shows the positional-argument error.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.