import { globalRegistry } from "./registry.ts";
import type { TextNamespace } from "./types.ts";
import { lineColToIndex, lines, trimEmptyLines } from "../lib/text.ts";
import { postProcessRestorePreservedHtml } from "../jupyter/preserve.ts";
import { executeInlineCodeHandler } from "../execute-inline.ts";
import { asYamlText } from "../jupyter/jupyter-fixups.ts";
globalRegistry.register("text", (): TextNamespace => {
return {
lines,
trimEmptyLines,
postProcessRestorePreservedHtml,
lineColToIndex,
executeInlineCodeHandler,
asYamlText,
};
});