6
6
7
7
/// <reference lib="dom" />
8
8
9
- import { Fragment , jsx , jsxs } from 'react/jsx-runtime'
10
- import React from 'react'
11
- import ReactDom from 'react-dom/client'
12
- import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
13
- import { createStarryNight } from '@wooorm/starry-night'
14
9
import sourceCss from '@wooorm/starry-night/source.css'
15
10
import sourceDiff from '@wooorm/starry-night/source.diff'
16
- import sourceJs from '@wooorm/starry-night/source.js'
17
11
import sourceJson from '@wooorm/starry-night/source.json'
12
+ import sourceJs from '@wooorm/starry-night/source.js'
18
13
import sourceToml from '@wooorm/starry-night/source.toml'
19
- import sourceTs from '@wooorm/starry-night/source.ts'
20
14
import sourceTsx from '@wooorm/starry-night/source.tsx'
15
+ import sourceTs from '@wooorm/starry-night/source.ts'
21
16
import sourceYaml from '@wooorm/starry-night/source.yaml'
22
17
import textHtmlBasic from '@wooorm/starry-night/text.html.basic'
23
18
import textXmlSvg from '@wooorm/starry-night/text.xml.svg'
24
19
import textXml from '@wooorm/starry-night/text.xml'
25
- import sourceMd from '../text.md.js'
20
+ import { createStarryNight } from '@wooorm/starry-night'
21
+ import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
22
+ import ReactDom from 'react-dom/client'
23
+ import { Fragment , jsx , jsxs } from 'react/jsx-runtime'
24
+ import React from 'react'
26
25
import sourceMdx from '../source.mdx.js'
26
+ import textMarkdown from '../text.md.js'
27
27
28
28
/** @type {Array<Grammar> } */
29
29
const grammars = [
@@ -32,13 +32,13 @@ const grammars = [
32
32
sourceJs ,
33
33
// @ts -expect-error: TS is wrong about `.json`, it’s not an extension.
34
34
sourceJson ,
35
- sourceMd ,
36
35
sourceMdx ,
37
36
sourceToml ,
38
37
sourceTs ,
39
38
sourceTsx ,
40
39
sourceYaml ,
41
40
textHtmlBasic ,
41
+ textMarkdown ,
42
42
textXml ,
43
43
textXmlSvg
44
44
]
0 commit comments