Skip to content

Suppress warnings for ```text code blocks #1566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ highlight_code = true
highlight_theme = "boron"
bottom_footnotes = true
insert_anchor_links = "left"
extra_syntaxes_and_themes = ["syntaxes"]

[extra]
# Put all your custom variables here
14 changes: 14 additions & 0 deletions syntaxes/custom_plain_text.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.2
---
name: Plain Text
file_extensions: [text]
scope: text.plain

# This custom syntax for plain text only exists so we can match against ```text
# code blocks, which are common in rustdoc. By default, only ```txt is supported
# by Zola. Without this file, `zola build` would print spurious warnings.

contexts:
main:
- match: whatever
scope: text.plain
Loading