mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
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:
committed by
Uri Shaked
parent
3c092caeed
commit
bfd5020b4c
@@ -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}}",
|
||||
|
||||
Reference in New Issue
Block a user