Skip to content

Repository files navigation

wdpr

Wikidot markup parser and renderer.

Packages

Package Description
@wdprlib/ast AST types for Wikidot markup
@wdprlib/parser Parser for Wikidot markup
@wdprlib/render HTML renderer for Wikidot markup
@wdprlib/decompiler Decompiler for Wikidot markup
@wdprlib/runtime Client-side runtime for Wikidot markup

Installation

npm install @wdprlib/parser @wdprlib/render

Example

WDPR Workers wiki starter is a D1-backed starter using Cloudflare Workers, the official Cloudflare Vite plugin, Hono, vanilla TypeScript, and R2-backed HTML blocks.

Usage

import { parse } from '@wdprlib/parser'
import { renderToHtml } from '@wdprlib/render'

const ast = parse('**Hello** world')
const html = renderToHtml(ast)

Development

bun install
bun run build
bun test

Origins

wdpr began as an independent TypeScript implementation of Wikidot markup. Its syntax behavior, AST compatibility, and parser design were developed with reference to the following projects, and portions of the project were later adapted from them:

See THIRD-PARTY-LICENSES.md for the applicable notices and licenses.

License

Available under the terms of the GNU Affero General Public License. See LICENSE.

About

Wikidot markup parser and renderer.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages