Tweak language in warning for bad fenced divs
まだ誰も着手していません。
評価
調査の方向性
src/resources/filters/normalize/astpipeline.lua の 341 行目付近、::: に関する警告が出力される箇所から始めます。Issue にあるフェンス付きコードの例を再現し、既存の検出を維持しながら、欠落している改行箇所を特定しやすくなるよう警告を修正します。完了条件は、その例でより明確な警告文が生成されることです。
索引モデルが issue の本文から書いたものです。
説明
In 1.7, missing newlines before code cells produce a warning about :::. This is the correct behavior, code cells should be prefaced by a newline. However, since the warning may be unexpected for documents that didn't previously generate a warning, we might consider tweaking the language to help people find the problem.
Example
Consider the following document:
---
title: "Untitled"
format: html
---
This does it:
```{r}
1 + 1
```
In 1.6, it is rendered without warning. Intermediate markdown:
---
title: "Untitled"
format: html
keep-md: true
---
This does it:
::: {.cell}
```{.r .cell-code}
1 + 1
```
::: {.cell-output .cell-output-stdout}
```
[1] 2
```
:::
:::
In 1.7, the missing newline before the code chunk, propagates to the markdown:
---
title: "Untitled"
format: html
keep-md: true
---
This does it:
::: {.cell}
```{.r .cell-code}
1 + 1
```
::: {.cell-output .cell-output-stdout}
```
[1] 2
```
:::
:::
An results in the warning:
WARNING (/Users/charlottewickham/Documents/posit/quarto-cli/src/resources/filters/./normalize/astpipeline.lua:341)
The following string was found in the document: :::
This usually indicates a problem with a fenced div in the document. Please check the document for errors.
- 主要言語
- JavaScript
- スター
- 6k
- フォーク
- 458
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 41
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/quarto-cli のほかの issue
-
binder bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
quarto-dev/quarto-cli#14907 · コメント 3 件 ·
-
brand bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
quarto-dev/quarto-cli#14875 ·
-
Percent scripts: accept raw-string (r""") and '''-delimited markdown cells, as jupytext writes them オープンengines-jupyter enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
quarto-dev/quarto-cli#14850 · コメント 2 件 ·
quarto-dev/quarto-cli の issue をすべて見る
似ている issue
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100