@scalar/code-highlight 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scalar/code-highlight
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8466](https://github.com/scalar/scalar/pull/8466): chore: new build pipeline
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
@@ -1,42 +1,62 @@
1
- import rehypeParse from "rehype-parse";
2
- import rehypeStringify from "rehype-stringify";
3
- import { unified } from "unified";
4
- import { visit } from "unist-util-visit";
5
- import { lowlightLanguageMappings } from "../constants.js";
6
- import { rehypeHighlight } from "../rehype-highlight/index.js";
7
- import { codeBlockLinesPlugin } from "./line-numbers.js";
8
- function syntaxHighlight(codeString, options) {
9
- const credentials = (typeof options?.maskCredentials === "string" ? [options.maskCredentials] : options?.maskCredentials ?? []).filter((c) => {
10
- if (c.length < 3) {
11
- return false;
12
- }
13
- return true;
14
- });
15
- const className = `language-${lowlightLanguageMappings[options.lang] ?? options.lang}`;
16
- const nullPlugin = () => {
17
- };
18
- const html = unified().use(rehypeParse, { fragment: true }).use(injectRawCodeStringPlugin(codeString)).use(rehypeHighlight, {
19
- languages: options.languages
20
- }).use(options?.lineNumbers ? codeBlockLinesPlugin : nullPlugin).use(rehypeStringify).processSync(`<pre><code class="${className}"></code></pre>`);
21
- const htmlString = html.toString();
22
- return credentials.length ? credentials.reduce(
23
- (acc, credential) => acc.split(credential).join(`<span class="credential"><span class="credential-value">${credential}</span></span>`),
24
- htmlString
25
- ) : htmlString;
1
+ import rehypeParse from 'rehype-parse';
2
+ import rehypeStringify from 'rehype-stringify';
3
+ import { unified } from 'unified';
4
+ import { visit } from 'unist-util-visit';
5
+ import { lowlightLanguageMappings } from '../constants.js';
6
+ import { rehypeHighlight } from '../rehype-highlight/index.js';
7
+ import { codeBlockLinesPlugin } from './line-numbers.js';
8
+ /**
9
+ * Syntax highlights a code string using the `rehype-highlight` library.
10
+ */
11
+ export function syntaxHighlight(codeString, options) {
12
+ // Simple restriction on credentials to prevent unexpected behavior
13
+ const credentials = (typeof options?.maskCredentials === 'string' ? [options.maskCredentials] : (options?.maskCredentials ?? [])).filter((c) => {
14
+ // Credentials must be at least 3 characters to mask.
15
+ if (c.length < 3) {
16
+ return false;
17
+ }
18
+ return true;
19
+ });
20
+ // Classname is used by lowlight to select the language model
21
+ const className = `language-${lowlightLanguageMappings[options.lang] ?? options.lang}`;
22
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: empty plugin
23
+ const nullPlugin = (() => { });
24
+ const html = unified()
25
+ // Parses markdown
26
+ .use(rehypeParse, { fragment: true })
27
+ // Raw code string must be injected after initial hast parsing
28
+ // so that HTML code is not parsed into the hast tree
29
+ .use(injectRawCodeStringPlugin(codeString))
30
+ // Syntax highlighting
31
+ .use(rehypeHighlight, {
32
+ languages: options.languages,
33
+ })
34
+ .use(options?.lineNumbers ? codeBlockLinesPlugin : nullPlugin)
35
+ // Converts the HTML AST to a string
36
+ .use(rehypeStringify)
37
+ // Run the pipeline
38
+ .processSync(`<pre><code class="${className}"></code></pre>`);
39
+ const htmlString = html.toString();
40
+ // Replace any credentials with a wrapper element
41
+ return credentials.length
42
+ ? credentials.reduce((acc, credential) => acc
43
+ .split(credential)
44
+ .join(`<span class="credential"><span class="credential-value">${credential}</span></span>`), htmlString)
45
+ : htmlString;
26
46
  }
47
+ /**
48
+ * To prevent unified from parsing any content of the code string we inject
49
+ * it as a raw text node into the AST tree as a child of the code element
50
+ */
27
51
  function injectRawCodeStringPlugin(rawCodeString) {
28
- return () => (tree) => {
29
- visit(tree, "element", (node) => {
30
- if (node.tagName === "code") {
31
- node.children.push({
32
- type: "text",
33
- value: rawCodeString
52
+ return () => (tree) => {
53
+ visit(tree, 'element', (node) => {
54
+ if (node.tagName === 'code') {
55
+ node.children.push({
56
+ type: 'text',
57
+ value: rawCodeString,
58
+ });
59
+ }
34
60
  });
35
- }
36
- });
37
- };
61
+ };
38
62
  }
39
- export {
40
- syntaxHighlight
41
- };
42
- //# sourceMappingURL=highlight.js.map
@@ -1,5 +1 @@
1
- import { syntaxHighlight } from "./highlight.js";
2
- export {
3
- syntaxHighlight
4
- };
5
- //# sourceMappingURL=index.js.map
1
+ export { syntaxHighlight } from './highlight.js';
@@ -1,69 +1,94 @@
1
- import { visit } from "unist-util-visit";
1
+ import { visit } from 'unist-util-visit';
2
+ // ---------------------------------------------------------------------------
3
+ // Line Numbering plugin
2
4
  function isText(element) {
3
- return element?.type === "text";
5
+ return element?.type === 'text';
4
6
  }
5
7
  function isElement(node) {
6
- return node?.type === "element";
8
+ return node?.type === 'element';
7
9
  }
8
10
  function textElement(value) {
9
- return { type: "text", value };
11
+ return { type: 'text', value };
10
12
  }
11
13
  function lineBreak() {
12
- return { type: "text", value: "\n" };
14
+ return { type: 'text', value: '\n' };
13
15
  }
14
- function codeBlockLinesPlugin() {
15
- return (tree) => {
16
- visit(tree, "element", (node, _i, parent) => {
17
- if (parent?.type === "element" && parent.tagName === "pre" && node.tagName === "code") {
18
- let numLines = 0;
19
- node.children = addLines(node);
20
- node.children.forEach((child) => {
21
- if (child.type === "element" && child.tagName === "span") {
22
- const lastChild = child.children[child.children.length - 1];
23
- if (lastChild && (!isText(lastChild) || isText(lastChild) && !hasLineBreak(lastChild))) {
24
- child.children.push(lineBreak());
25
- numLines++;
16
+ /**
17
+ * Adds lines to code blocks
18
+ */
19
+ export function codeBlockLinesPlugin() {
20
+ return (tree) => {
21
+ visit(tree, 'element', (node, _i, parent) => {
22
+ if (parent?.type === 'element' && parent.tagName === 'pre' && node.tagName === 'code') {
23
+ let numLines = 0;
24
+ // Wraps each line in a span
25
+ node.children = addLines(node);
26
+ // Adds a line break to the end of each line
27
+ node.children.forEach((child) => {
28
+ if (child.type === 'element' && child.tagName === 'span') {
29
+ const lastChild = child.children[child.children.length - 1];
30
+ if (lastChild && (!isText(lastChild) || (isText(lastChild) && !hasLineBreak(lastChild)))) {
31
+ child.children.push(lineBreak());
32
+ numLines++;
33
+ }
34
+ }
35
+ });
36
+ // We need to maintain a count of the total lines to allow space for the labels
37
+ node.properties.style = [`--line-count: ${numLines};`, `--line-digits: ${numLines.toString().length};`];
26
38
  }
27
- }
28
39
  });
29
- node.properties.style = [`--line-count: ${numLines};`, `--line-digits: ${numLines.toString().length};`];
30
- }
31
- });
32
- };
40
+ // console.log('NUMBER OF LINES IS: ', numLines)
41
+ };
33
42
  }
43
+ /**
44
+ * Adds lines to a node recursively and returns them
45
+ *
46
+ * @param node - The node to add lines to
47
+ * @param lines - The current lines
48
+ * @param copyParent - Whether to copy the parent node to save the original node styles
49
+ */
34
50
  function addLines(node, lines = [], copyParent) {
35
- const line = () => lines[lines.length - 1] ?? (lines.push(createLine()) && lines[lines.length - 1] || void 0);
36
- node.children.forEach((child) => {
37
- if (isText(child) && hasLineBreak(child)) {
38
- const split = child.value.split(/\n/);
39
- split.forEach((content, i) => {
40
- if (copyParent) {
41
- line()?.children.push({ ...node, children: [textElement(content)] });
42
- } else {
43
- line()?.children.push(textElement(content));
51
+ const line = () => lines[lines.length - 1] ?? ((lines.push(createLine()) && lines[lines.length - 1]) || undefined);
52
+ node.children.forEach((child) => {
53
+ if (isText(child) && hasLineBreak(child)) {
54
+ const split = child.value.split(/\n/);
55
+ split.forEach((content, i) => {
56
+ if (copyParent) {
57
+ line()?.children.push({ ...node, children: [textElement(content)] });
58
+ }
59
+ else {
60
+ line()?.children.push(textElement(content));
61
+ }
62
+ i !== split.length - 1 && lines.push(createLine());
63
+ });
64
+ }
65
+ else if (isElement(child) && child.children.some(hasLineBreak)) {
66
+ addLines(child, lines, true);
44
67
  }
45
- i !== split.length - 1 && lines.push(createLine());
46
- });
47
- } else if (isElement(child) && child.children.some(hasLineBreak)) {
48
- addLines(child, lines, true);
49
- } else {
50
- line()?.children.push(child);
51
- }
52
- });
53
- return lines;
68
+ else {
69
+ line()?.children.push(child);
70
+ }
71
+ });
72
+ return lines;
54
73
  }
74
+ /**
75
+ * Creates a new line element
76
+ *
77
+ * @param children - The children the line should have initially
78
+ */
55
79
  function createLine(...children) {
56
- return {
57
- type: "element",
58
- tagName: "span",
59
- properties: { class: ["line"] },
60
- children
61
- };
80
+ return {
81
+ type: 'element',
82
+ tagName: 'span',
83
+ properties: { class: ['line'] },
84
+ children,
85
+ };
62
86
  }
87
+ /**
88
+ * Checks if a node has a line break
89
+ *
90
+ * @param node - The node to check
91
+ */
63
92
  function hasLineBreak(node) {
64
- return isText(node) && /\r?\n/.test(node.value) || isElement(node) && node.children.some(hasLineBreak);
93
+ return (isText(node) && /\r?\n/.test(node.value)) || (isElement(node) && node.children.some(hasLineBreak));
65
94
  }
66
- export {
67
- codeBlockLinesPlugin
68
- };
69
- //# sourceMappingURL=line-numbers.js.map
package/dist/constants.js CHANGED
@@ -1,13 +1,11 @@
1
- const lowlightLanguageMappings = {
2
- "ts": "typescript",
3
- "js": "javascript",
4
- "py": "python",
5
- "py3": "python",
6
- "c#": "csharp",
7
- "c++": "cpp",
8
- "node": "javascript"
1
+ /** Map common markdown language shortcuts to lowlight languages */
2
+ export const lowlightLanguageMappings = {
3
+ 'ts': 'typescript',
4
+ 'js': 'javascript',
5
+ 'py': 'python',
6
+ 'py3': 'python',
7
+ 'c#': 'csharp',
8
+ 'c++': 'cpp',
9
+ 'node': 'javascript',
9
10
  };
10
- export {
11
- lowlightLanguageMappings
12
- };
13
- //# sourceMappingURL=constants.js.map
11
+ //
package/dist/index.js CHANGED
@@ -1,14 +1,5 @@
1
- import { syntaxHighlight } from "./code/index.js";
2
- import { lowlightLanguageMappings } from "./constants.js";
3
- export * from "./languages/index.js";
4
- import { htmlFromMarkdown, isHeading, textFromNode } from "./markdown/index.js";
5
- import { rehypeHighlight } from "./rehype-highlight/index.js";
6
- export {
7
- htmlFromMarkdown,
8
- isHeading,
9
- lowlightLanguageMappings,
10
- rehypeHighlight,
11
- syntaxHighlight,
12
- textFromNode
13
- };
14
- //# sourceMappingURL=index.js.map
1
+ export { syntaxHighlight } from './code/index.js';
2
+ export { lowlightLanguageMappings } from './constants.js';
3
+ export * from './languages/index.js';
4
+ export { htmlFromMarkdown, isHeading, textFromNode } from './markdown/index.js';
5
+ export { rehypeHighlight } from './rehype-highlight/index.js';
@@ -1,33 +1,30 @@
1
- import bash from "highlight.js/lib/languages/bash";
2
- import css from "highlight.js/lib/languages/css";
3
- import javascript from "highlight.js/lib/languages/javascript";
4
- import json from "highlight.js/lib/languages/json";
5
- import less from "highlight.js/lib/languages/less";
6
- import markdown from "highlight.js/lib/languages/markdown";
7
- import plaintext from "highlight.js/lib/languages/plaintext";
8
- import python from "highlight.js/lib/languages/python";
9
- import scss from "highlight.js/lib/languages/scss";
10
- import shell from "highlight.js/lib/languages/shell";
11
- import typescript from "highlight.js/lib/languages/typescript";
12
- import xml from "highlight.js/lib/languages/xml";
13
- import yaml from "highlight.js/lib/languages/yaml";
1
+ import bash from 'highlight.js/lib/languages/bash';
2
+ import css from 'highlight.js/lib/languages/css';
3
+ import javascript from 'highlight.js/lib/languages/javascript';
4
+ import json from 'highlight.js/lib/languages/json';
5
+ import less from 'highlight.js/lib/languages/less';
6
+ import markdown from 'highlight.js/lib/languages/markdown';
7
+ import plaintext from 'highlight.js/lib/languages/plaintext';
8
+ import python from 'highlight.js/lib/languages/python';
9
+ import scss from 'highlight.js/lib/languages/scss';
10
+ import shell from 'highlight.js/lib/languages/shell';
11
+ import typescript from 'highlight.js/lib/languages/typescript';
12
+ import xml from 'highlight.js/lib/languages/xml';
13
+ import yaml from 'highlight.js/lib/languages/yaml';
14
14
  const basicLanguages = {
15
- bash,
16
- css,
17
- html: xml,
18
- javascript,
19
- json,
20
- less,
21
- markdown,
22
- plaintext,
23
- python,
24
- scss,
25
- shell,
26
- typescript,
27
- xml,
28
- yaml
15
+ bash,
16
+ css,
17
+ html: xml,
18
+ javascript,
19
+ json,
20
+ less,
21
+ markdown,
22
+ plaintext,
23
+ python,
24
+ scss,
25
+ shell,
26
+ typescript,
27
+ xml,
28
+ yaml,
29
29
  };
30
- export {
31
- basicLanguages
32
- };
33
- //# sourceMappingURL=basic.js.map
30
+ export { basicLanguages };
@@ -1,9 +1,3 @@
1
- import { basicLanguages } from "./basic.js";
2
- import { jsonYamlLanguages } from "./json-yaml.js";
3
- import { standardLanguages } from "./standard.js";
4
- export {
5
- basicLanguages,
6
- jsonYamlLanguages,
7
- standardLanguages
8
- };
9
- //# sourceMappingURL=index.js.map
1
+ export { basicLanguages } from './basic.js';
2
+ export { jsonYamlLanguages } from './json-yaml.js';
3
+ export { standardLanguages } from './standard.js';
@@ -1,12 +1,9 @@
1
- import json from "highlight.js/lib/languages/json";
2
- import plaintext from "highlight.js/lib/languages/plaintext";
3
- import yaml from "highlight.js/lib/languages/yaml";
1
+ import json from 'highlight.js/lib/languages/json';
2
+ import plaintext from 'highlight.js/lib/languages/plaintext';
3
+ import yaml from 'highlight.js/lib/languages/yaml';
4
4
  const jsonYamlLanguages = {
5
- json,
6
- plaintext,
7
- yaml
5
+ json,
6
+ plaintext,
7
+ yaml,
8
8
  };
9
- export {
10
- jsonYamlLanguages
11
- };
12
- //# sourceMappingURL=json-yaml.js.map
9
+ export { jsonYamlLanguages };
@@ -1,101 +1,116 @@
1
- import bash from "highlight.js/lib/languages/bash";
2
- import c from "highlight.js/lib/languages/c";
3
- import clojure from "highlight.js/lib/languages/clojure";
4
- import cpp from "highlight.js/lib/languages/cpp";
5
- import csharp from "highlight.js/lib/languages/csharp";
6
- import css from "highlight.js/lib/languages/css";
7
- import dart from "highlight.js/lib/languages/dart";
8
- import diff from "highlight.js/lib/languages/diff";
9
- import dockerfile from "highlight.js/lib/languages/dockerfile";
10
- import elixir from "highlight.js/lib/languages/elixir";
11
- import fsharp from "highlight.js/lib/languages/fsharp";
12
- import go from "highlight.js/lib/languages/go";
13
- import graphql from "highlight.js/lib/languages/graphql";
14
- import haskell from "highlight.js/lib/languages/haskell";
15
- import http from "highlight.js/lib/languages/http";
16
- import ini from "highlight.js/lib/languages/ini";
17
- import java from "highlight.js/lib/languages/java";
18
- import javascript from "highlight.js/lib/languages/javascript";
19
- import json from "highlight.js/lib/languages/json";
20
- import kotlin from "highlight.js/lib/languages/kotlin";
21
- import less from "highlight.js/lib/languages/less";
22
- import lua from "highlight.js/lib/languages/lua";
23
- import makefile from "highlight.js/lib/languages/makefile";
24
- import markdown from "highlight.js/lib/languages/markdown";
25
- import matlab from "highlight.js/lib/languages/matlab";
26
- import nginx from "highlight.js/lib/languages/nginx";
27
- import objectivec from "highlight.js/lib/languages/objectivec";
28
- import ocaml from "highlight.js/lib/languages/ocaml";
29
- import perl from "highlight.js/lib/languages/perl";
30
- import php from "highlight.js/lib/languages/php";
31
- import plaintext from "highlight.js/lib/languages/plaintext";
32
- import powershell from "highlight.js/lib/languages/powershell";
33
- import properties from "highlight.js/lib/languages/properties";
34
- import python from "highlight.js/lib/languages/python";
35
- import r from "highlight.js/lib/languages/r";
36
- import ruby from "highlight.js/lib/languages/ruby";
37
- import rust from "highlight.js/lib/languages/rust";
38
- import scala from "highlight.js/lib/languages/scala";
39
- import scss from "highlight.js/lib/languages/scss";
40
- import shell from "highlight.js/lib/languages/shell";
41
- import sql from "highlight.js/lib/languages/sql";
42
- import swift from "highlight.js/lib/languages/swift";
43
- import typescript from "highlight.js/lib/languages/typescript";
44
- import xml from "highlight.js/lib/languages/xml";
45
- import yaml from "highlight.js/lib/languages/yaml";
46
- import curl from "highlightjs-curl";
47
- const standardLanguages = {
48
- bash,
49
- c,
50
- clojure,
51
- cpp,
52
- csharp,
53
- css,
54
- curl,
55
- dart,
56
- diff,
57
- docker: dockerfile,
58
- dockerfile,
59
- elixir,
60
- fsharp,
61
- go,
62
- graphql,
63
- haskell,
64
- html: xml,
65
- http,
66
- ini,
67
- java,
68
- javascript,
69
- json,
70
- kotlin,
71
- less,
72
- lua,
73
- makefile,
74
- markdown,
75
- matlab,
76
- nginx,
77
- objectivec,
78
- ocaml,
79
- perl,
80
- php,
81
- plaintext,
82
- powershell,
83
- properties,
84
- python,
85
- r,
86
- ruby,
87
- rust,
88
- scala,
89
- scss,
90
- shell,
91
- sql,
92
- swift,
93
- toml: ini,
94
- typescript,
95
- xml,
96
- yaml
1
+ import bash from 'highlight.js/lib/languages/bash';
2
+ import c from 'highlight.js/lib/languages/c';
3
+ import clojure from 'highlight.js/lib/languages/clojure';
4
+ import cpp from 'highlight.js/lib/languages/cpp';
5
+ import csharp from 'highlight.js/lib/languages/csharp';
6
+ import css from 'highlight.js/lib/languages/css';
7
+ import dart from 'highlight.js/lib/languages/dart';
8
+ import diff from 'highlight.js/lib/languages/diff';
9
+ import dockerfile from 'highlight.js/lib/languages/dockerfile';
10
+ import elixir from 'highlight.js/lib/languages/elixir';
11
+ import fsharp from 'highlight.js/lib/languages/fsharp';
12
+ import go from 'highlight.js/lib/languages/go';
13
+ import graphql from 'highlight.js/lib/languages/graphql';
14
+ import haskell from 'highlight.js/lib/languages/haskell';
15
+ import http from 'highlight.js/lib/languages/http';
16
+ import ini from 'highlight.js/lib/languages/ini';
17
+ import java from 'highlight.js/lib/languages/java';
18
+ import javascript from 'highlight.js/lib/languages/javascript';
19
+ import json from 'highlight.js/lib/languages/json';
20
+ import kotlin from 'highlight.js/lib/languages/kotlin';
21
+ import less from 'highlight.js/lib/languages/less';
22
+ import lua from 'highlight.js/lib/languages/lua';
23
+ import makefile from 'highlight.js/lib/languages/makefile';
24
+ import markdown from 'highlight.js/lib/languages/markdown';
25
+ import matlab from 'highlight.js/lib/languages/matlab';
26
+ import nginx from 'highlight.js/lib/languages/nginx';
27
+ import objectivec from 'highlight.js/lib/languages/objectivec';
28
+ import ocaml from 'highlight.js/lib/languages/ocaml';
29
+ import perl from 'highlight.js/lib/languages/perl';
30
+ import php from 'highlight.js/lib/languages/php';
31
+ import plaintext from 'highlight.js/lib/languages/plaintext';
32
+ import powershell from 'highlight.js/lib/languages/powershell';
33
+ import properties from 'highlight.js/lib/languages/properties';
34
+ import python from 'highlight.js/lib/languages/python';
35
+ import r from 'highlight.js/lib/languages/r';
36
+ import ruby from 'highlight.js/lib/languages/ruby';
37
+ import rust from 'highlight.js/lib/languages/rust';
38
+ import scala from 'highlight.js/lib/languages/scala';
39
+ import scss from 'highlight.js/lib/languages/scss';
40
+ import shell from 'highlight.js/lib/languages/shell';
41
+ import sql from 'highlight.js/lib/languages/sql';
42
+ import swift from 'highlight.js/lib/languages/swift';
43
+ import typescript from 'highlight.js/lib/languages/typescript';
44
+ import xml from 'highlight.js/lib/languages/xml';
45
+ import yaml from 'highlight.js/lib/languages/yaml';
46
+ // @ts-expect-error No types available
47
+ import curl from 'highlightjs-curl';
48
+ /**
49
+ * We group languages into three categories based on their popularity and usage.
50
+ * This helps in optimizing the bundle size by allowing users to include only
51
+ * the languages they need.
52
+ *
53
+ * 1. Standard Languages: These are the most popular languages that cover the
54
+ * majority of use cases.
55
+ * 2. Medium Languages: These languages are not as popular as the ones in
56
+ * `standardLanguages`, but still have a decent amount of users.
57
+ * 3. Specialized Languages: These languages are more specialized and have a
58
+ * smaller user base.
59
+ *
60
+ * Each category is represented as a separate object, making it easy to import
61
+ * only the languages you need.
62
+ */
63
+ /**
64
+ * These are the most popular languages that cover the majority of use cases.
65
+ */
66
+ export const standardLanguages = {
67
+ bash,
68
+ c,
69
+ clojure,
70
+ cpp,
71
+ csharp,
72
+ css,
73
+ curl,
74
+ dart,
75
+ diff,
76
+ docker: dockerfile,
77
+ dockerfile,
78
+ elixir,
79
+ fsharp,
80
+ go,
81
+ graphql,
82
+ haskell,
83
+ html: xml,
84
+ http,
85
+ ini,
86
+ java,
87
+ javascript,
88
+ json,
89
+ kotlin,
90
+ less,
91
+ lua,
92
+ makefile,
93
+ markdown,
94
+ matlab,
95
+ nginx,
96
+ objectivec,
97
+ ocaml,
98
+ perl,
99
+ php,
100
+ plaintext,
101
+ powershell,
102
+ properties,
103
+ python,
104
+ r,
105
+ ruby,
106
+ rust,
107
+ scala,
108
+ scss,
109
+ shell,
110
+ sql,
111
+ swift,
112
+ toml: ini,
113
+ typescript,
114
+ xml,
115
+ yaml,
97
116
  };
98
- export {
99
- standardLanguages
100
- };
101
- //# sourceMappingURL=standard.js.map
@@ -1,2 +1 @@
1
- export * from "./markdown.js";
2
- //# sourceMappingURL=index.js.map
1
+ export * from './markdown.js';