UNPKG

@rshirohara/rekurke-repixe

Version:

rekurke plugin that turns kakuyomu novel format into pixiv novel format to support repixe.

10 lines (8 loc) 382 B
import type { Root as KkastRoot } from "@rshirohara/kkast"; import type { Root as PxastRoot } from "@rshirohara/pxast"; import { convertRoot } from "./converter.js"; import { type Options, buildOptions } from "./options.js"; export function toPxast(tree: KkastRoot, options?: Options | null): PxastRoot { const option = buildOptions(options); return convertRoot(tree, option); }