Wikidot markup parser and renderer.
| 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 |
npm install @wdprlib/parser @wdprlib/renderWDPR Workers wiki starter is a D1-backed starter using Cloudflare Workers, the official Cloudflare Vite plugin, Hono, vanilla TypeScript, and R2-backed HTML blocks.
import { parse } from '@wdprlib/parser'
import { renderToHtml } from '@wdprlib/render'
const ast = parse('**Hello** world')
const html = renderToHtml(ast)bun install
bun run build
bun testwdpr 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:
- ftml, licensed under the GNU Affero General Public License v3.0 or later.
- Wikidot Text_Wiki, licensed under the GNU Lesser General Public License v2.1.
See THIRD-PARTY-LICENSES.md for the applicable notices and licenses.
Available under the terms of the GNU Affero General Public License. See LICENSE.