Tree-sitter for MediaWiki's "Wikitext" markup language.
  • TypeScript 100%
Find a file
2026-07-10 15:17:34 +10:00
bindings Initial commit 2026-06-14 04:53:44 +10:00
.editorconfig Initial commit 2026-06-14 04:53:44 +10:00
.gitattributes Initial commit 2026-06-14 04:53:44 +10:00
.gitignore feat: TypeScript used for project 2026-07-02 09:18:11 +10:00
binding.gyp Initial commit 2026-06-14 04:53:44 +10:00
Cargo.toml Initial commit 2026-06-14 04:53:44 +10:00
CMakeLists.txt Initial commit 2026-06-14 04:53:44 +10:00
go.mod Initial commit 2026-06-14 04:53:44 +10:00
grammar.ts feat(grammar): the "file links" rule and the "templates" rule use the same "params" rule 2026-07-10 15:14:29 +10:00
LICENCE.md feat: project has a README and is protected under the GNU AGPLv3+ licence 2026-06-15 03:42:05 +10:00
Makefile Initial commit 2026-06-14 04:53:44 +10:00
package-lock.json feat: TypeScript used for project 2026-07-02 09:18:11 +10:00
package.json fix: package.json install script builds grammar before running "node-gyp" bindings 2026-07-09 13:46:09 +10:00
Package.swift Initial commit 2026-06-14 04:53:44 +10:00
pyproject.toml Initial commit 2026-06-14 04:53:44 +10:00
README.md feat(README): build instructions documented 2026-07-09 13:56:03 +10:00
setup.py Initial commit 2026-06-14 04:53:44 +10:00
tree-sitter.json Initial commit 2026-06-14 04:53:44 +10:00
tsconfig.json chore: TypeScript config specified as strict 2026-07-02 09:47:54 +10:00

Tree-sitter Wikitext

Last Commit Time

This is a tree-sitter grammar for the Wikitext markup language used on MediaWiki websites like Wikipedia.

Building

Requirements

  • npm or equivalent.

pnpm presently (v10.30.1) appears to malfunction with the tree-sitter and/or tree-sitter-cli packages. It is recommended to stick to npm.

Instructions

Simply run npm i and all the building will be taken care of. This generates the grammar.js file, some JSON files, a C file, and more and also runs some compilation on these files.

After building, using this as a parser in another language (e.g. importing into a Python project using pip) is straightforward and you can link directly to the directory.

Licence

This project is licenced under the GNU Affero General Public Licence v3 or any compatible, later revision of the licence (AGPLv3+). See the project's licence file for more information about what this entails.

MnPX's Works is controlled by MnPX, the developer running mnpx.dev, contactable at git@mnpx.dev.

Mirrors

This repository is primarily available at https://git.mnpx.dev/mnpx/tree-sitter-wikitext but is automatically push-mirrored (daily) to:

Credits