fix(docs): attempt to sanitise user strings from yaml

User strings were used as-is in certain parts since they were taken directly from `info.yaml`, but this could sometimes cause the datasheet build to fail since they've found a way (intentionally or not) to escape the content box that they were in.

This commit attempts to address this issue by:
- Sanitising user input using regex
- Using Typst's `str()` function instead of content boxes where possible
- Clarifying syntax in certain sections

Hopefully these changes will remove (or at least reduce) the chances of someone breaking the build.
This commit is contained in:
Kristaps Jurkans
2026-03-07 22:55:01 +02:00
committed by Uri Shaked
parent 3c092caeed
commit bfd5020b4c
2 changed files with 38 additions and 16 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
#let blockquote = tt.lib.blockquote
#show: tt.datasheet.project.with(
title: "{{&project_title}}",
title: {{&project_title}},
author: {{&project_author}},
repo_link: "{{project_repo_link}}",
description: "{{&project_description}}",
description: {{&project_description}},
address: "{{&project_address}}",
clock: "{{project_clock}}",
type: "{{project_type}}",