https://github.com/r74tech/wdpr
Wikidot markup parser and renderer.
https://github.com/r74tech/wdpr
ast markup parser renderer wikidot
Last synced: 4 months ago
JSON representation
Wikidot markup parser and renderer.
- Host: GitHub
- URL: https://github.com/r74tech/wdpr
- Owner: r74tech
- License: agpl-3.0
- Created: 2026-01-27T21:09:26.000Z (5 months ago)
- Default Branch: develop
- Last Pushed: 2026-02-17T03:05:20.000Z (4 months ago)
- Last Synced: 2026-02-17T09:07:54.309Z (4 months ago)
- Topics: ast, markup, parser, renderer, wikidot
- Language: TypeScript
- Homepage: https://r74tech.github.io/wdpr/
- Size: 837 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wdpr
Wikidot markup parser and renderer.
## Packages
| Package | Description |
|---------|-------------|
| [@wdprlib/ast](./packages/ast) | AST types for Wikidot markup |
| [@wdprlib/parser](./packages/parser) | Parser for Wikidot markup |
| [@wdprlib/render](./packages/render) | HTML renderer for Wikidot markup |
| [@wdprlib/decompiler](./packages/decompiler) | Decompiler for Wikidot markup |
| [@wdprlib/runtime](./packages/runtime) | Client-side runtime for Wikidot markup |
## Installation
```bash
npm install @wdprlib/parser @wdprlib/render
```
## Usage
```ts
import { parse } from '@wdprlib/parser'
import { renderToHtml } from '@wdprlib/render'
const ast = parse('**Hello** world')
const html = renderToHtml(ast)
```
## Development
```bash
bun install
bun run build
bun test
```
## Acknowledgments
This project is inspired by [ftml](https://github.com/scpwiki/ftml) and the original [Wikidot Text_Wiki](https://github.com/gabrys/wikidot/tree/master/lib/Text_Wiki/Text).
## License
Available under the terms of the GNU Affero General Public License. See [LICENSE](LICENSE).