@rshirohara/repixe-rekurke
Version:
repixe plugin that turns pixiv novel format into kakuyomu novel format to support rekurke.
11 lines (9 loc) • 453 B
text/typescript
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";
import { postprocess } from "./postprocessor.js";
export function toKkast(tree: PxastRoot, options?: Options | null): KkastRoot {
const option = buildOptions(options);
return postprocess(convertRoot(tree, option), option);
}