Vizel API / core/src / VizelWikiLink
Variable: VizelWikiLink
ts
const VizelWikiLink: Mark<VizelWikiLinkOptions, any>;Defined in: packages/core/src/extensions/wiki-link.ts:146
Wiki Link mark extension for Vizel editor.
Supports [[page-name]] and [[page-name|display text]] syntax. Links are rendered with visual differentiation for existing vs non-existing pages.
Example
typescript
import { VizelWikiLink } from "@vizel/core";
const editor = new Editor({
extensions: [
VizelWikiLink.configure({
resolveLink: (page) => `/wiki/${encodeURIComponent(page)}`,
pageExists: (page) => knownPages.has(page),
}),
],
});