Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/core/api/text.ts
6458 views
1
// src/core/api/text.ts
2
3
import { globalRegistry } from "./registry.ts";
4
import type { TextNamespace } from "./types.ts";
5
6
// Import implementations
7
import { lineColToIndex, lines, trimEmptyLines } from "../lib/text.ts";
8
import { postProcessRestorePreservedHtml } from "../jupyter/preserve.ts";
9
import { executeInlineCodeHandler } from "../execute-inline.ts";
10
import { asYamlText } from "../jupyter/jupyter-fixups.ts";
11
12
// Register text namespace
13
globalRegistry.register("text", (): TextNamespace => {
14
return {
15
lines,
16
trimEmptyLines,
17
postProcessRestorePreservedHtml,
18
lineColToIndex,
19
executeInlineCodeHandler,
20
asYamlText,
21
};
22
});
23
24