textlint-plugin-typst

March 4, 2026 ยท View on GitHub

NPM Version NPM Downloads NPM License CI

textlint plugin to lint Typst

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)
TypsttextlintMarkupFunction
Paragraph breakParagraphโœ…๐Ÿšซ
Strong emphasisStrongโœ…๐Ÿšซ
EmphasisEmphasisโœ…๐Ÿšซ
Raw textCode / CodeBlockโœ…๐Ÿšซ
LinkLinkโœ…๐Ÿšซ
LabelCodeโœ…๐Ÿšซ
ReferenceCodeโœ…๐Ÿšซ
HeadingHeaderโœ…๐Ÿšซ
Bullet listList / ListItemโœ…๐Ÿšซ
Numbered listList / ListItemโœ…๐Ÿšซ
Term listList / ListItemโš ๏ธ๐Ÿšซ
MathCode / CodeBlockโœ…๐Ÿšซ
Line breakBreakโœ…๐Ÿšซ
Smart quoteStrโœ…๐Ÿšซ
Symbol shorthandCodeโœ…๐Ÿšซ
Code expressionโœ…โœ…
Character escapeCodeโœ…๐Ÿšซ
CommentCommentโœ…๐Ÿšซ

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!

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Maintainers

License

MIT License