Skip to content

fix: support code annotations for unknown languages and idiomatic highlighting#10

Merged
mcanouil merged 1 commit intomainfrom
fix/code-annotations-unknown-langs
Mar 24, 2026
Merged

fix: support code annotations for unknown languages and idiomatic highlighting#10
mcanouil merged 1 commit intomainfrom
fix/code-annotations-unknown-langs

Conversation

@mcanouil
Copy link
Copy Markdown
Owner

Default to # as comment symbol for unmapped code block languages (default, txt, etc.) in annotation detection, matching Quarto's own behaviour.

Add a show raw.line Typst rule for syntax-highlighting: idiomatic mode where the Skylighting override is absent, placing circled annotation markers on annotated lines with bidirectional linking.

Make code-window-annotation-item resilient to missing line labels by querying for the target label before creating a link.

…hlighting

Default to `#` as comment symbol for unmapped code block languages
(`default`, `txt`, etc.), matching Quarto's own behaviour.

Add a `show raw.line` Typst rule for idiomatic/native highlighting mode
where the Skylighting override is absent, placing circled annotation
markers on annotated lines with first-occurrence label tracking for
bidirectional linking.

Make `code-window-annotation-item` resilient to missing line labels by
querying for the target before creating a link.
@mcanouil mcanouil added the Type: Bug 🐛 Issues related to bugs, errors, or mistakes label Mar 24, 2026
@mcanouil mcanouil self-assigned this Mar 24, 2026
@mcanouil mcanouil merged commit b5c12e0 into main Mar 24, 2026
@mcanouil mcanouil deleted the fix/code-annotations-unknown-langs branch March 24, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug 🐛 Issues related to bugs, errors, or mistakes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant