textlint-plugin-typst
March 4, 2026 ยท View on GitHub
Installation
# npm
npm install textlint-plugin-typst
# Yarn
yarn add textlint-plugin-typst
# pnpm
pnpm add textlint-plugin-typst
# Bun
bun add textlint-plugin-typst
Usage
{
"plugins": {
"typst": true
}
}
Options
extensions:string[]- Additional file extensions for Typst
Syntax support
This plugin supports the syntax of Typst v0.14.2.
Legend for syntax support:
- โ : Supported
- ๐ซ: Not in progress
- โ๏ธ: In progress
- โ ๏ธ: Partially supported (with some caveats)
| Typst | textlint | Markup | Function |
|---|---|---|---|
| Paragraph break | Paragraph | โ | ๐ซ |
| Strong emphasis | Strong | โ | ๐ซ |
| Emphasis | Emphasis | โ | ๐ซ |
| Raw text | Code / CodeBlock | โ | ๐ซ |
| Link | Link | โ | ๐ซ |
| Label | Code | โ | ๐ซ |
| Reference | Code | โ | ๐ซ |
| Heading | Header | โ | ๐ซ |
| Bullet list | List / ListItem | โ | ๐ซ |
| Numbered list | List / ListItem | โ | ๐ซ |
| Term list | List / ListItem | โ ๏ธ | ๐ซ |
| Math | Code / CodeBlock | โ | ๐ซ |
| Line break | Break | โ | ๐ซ |
| Smart quote | Str | โ | ๐ซ |
| Symbol shorthand | Code | โ | ๐ซ |
| Code expression | โ | โ | |
| Character escape | Code | โ | ๐ซ |
| Comment | Comment | โ | ๐ซ |
Examples
textlint-filter-rule-comments
Example of how to use textlint-filter-rule-comments is shown below.
This is error text.
/* textlint-disable */
This is ignored text by rule.
Disables all rules between comments
/* textlint-enable */
This is error text.
Also, you can use single-line comments.
This is error text.
// textlint-disable
This is ignored text by rule.
Disables all rules between comments
// textlint-enable
This is error text.
Contributing
This project is still under development, so please feel free to contribute!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D