@vivliostyle/vfm
Version:
Custom Markdown syntax specialized in book authoring.
12 lines (11 loc) • 387 B
JavaScript
import initDebug from 'debug';
import { inspect as unistInspect } from 'unist-util-inspect';
export const debug = initDebug('vfm');
export const inspect = (header) => () => (tree) => {
if (debug.enabled) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
if (header)
debug(`\n### ${header} ###`);
debug(unistInspect(tree));
}
};