Typst: minimize external package dependencies to ameliorate third-party SSL issues

未關閉
#8,701 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
32/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
領域
build-system, cli

研究方向

No source file or test is named. Start by rendering the supplied minimal .qmd example in Typst and inspect how callout boxes generate the fontawesome import and package download. Done means the example renders without requiring the failing external package download or encountering the reported TLS certificate error.

由索引模型根據 Issue 內容生成。

描述

enhancement typst
What would you like to do?

Report an issue on quarto.org

Description

Problem

When trying to render a document in the typst format, callout boxes lead to an error because the fontawesome package is ostensibly missing. I tried to install the package but haven't found a way to achieve this.

Any suggestions to fix this would be very much appreciated!

Details

Simple qmd file to replicate the error:
---
title: "Untitled"
format:
  typst:
    papersize: a4
---

## Slide 1

Bla bla bla. Bla bla bla. Bla bla bla.

::: {.callout-note icon="false" title="In plain language"}
blalalal
:::
Error message:

[typst]: Compiling delete.typ to delete.pdf...downloading @preview/fontawesome:0.1.0 error: failed to download package (https://packages.typst.org/preview/fontawesome-0.1.0.tar.gz: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer) ┌─ delete.typ:245:8 │ 245 │ #import "@preview/fontawesome:0.1.0": * │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Quarto check returns the following:
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.549
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/local/texlive/bin/linux
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /tmp/RtmpAhlipE/rstudio/terminal/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.1
      Path: /usr/local/lib/R
      LibPaths:
        - .../renv/library/R-4.3/x86_64-pc-linux-gnu
        - .../.cache/R/renv/sandbox/R-4.3/x86_64-pc-linux-gnu/25ebdc09
      knitr: 1.45
      rmarkdown: 2.25

[✓] Checking Knitr engine render......OK
主要語言
JavaScript
星號
6k
分支
458
平均合併
1 天 9 小時
30 天內合併 PR
41

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。