Skip to content

Commit 403f851

Browse files
committed
Refactor code-style
1 parent 0229d1b commit 403f851

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

example/index.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66

77
/// <reference lib="dom" />
88

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'
149
import sourceCss from '@wooorm/starry-night/source.css'
1510
import sourceDiff from '@wooorm/starry-night/source.diff'
16-
import sourceJs from '@wooorm/starry-night/source.js'
1711
import sourceJson from '@wooorm/starry-night/source.json'
12+
import sourceJs from '@wooorm/starry-night/source.js'
1813
import sourceToml from '@wooorm/starry-night/source.toml'
19-
import sourceTs from '@wooorm/starry-night/source.ts'
2014
import sourceTsx from '@wooorm/starry-night/source.tsx'
15+
import sourceTs from '@wooorm/starry-night/source.ts'
2116
import sourceYaml from '@wooorm/starry-night/source.yaml'
2217
import textHtmlBasic from '@wooorm/starry-night/text.html.basic'
2318
import textXmlSvg from '@wooorm/starry-night/text.xml.svg'
2419
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'
2625
import sourceMdx from '../source.mdx.js'
26+
import textMarkdown from '../text.md.js'
2727

2828
/** @type {Array<Grammar>} */
2929
const grammars = [
@@ -32,13 +32,13 @@ const grammars = [
3232
sourceJs,
3333
// @ts-expect-error: TS is wrong about `.json`, it’s not an extension.
3434
sourceJson,
35-
sourceMd,
3635
sourceMdx,
3736
sourceToml,
3837
sourceTs,
3938
sourceTsx,
4039
sourceYaml,
4140
textHtmlBasic,
41+
textMarkdown,
4242
textXml,
4343
textXmlSvg
4444
]

0 commit comments

Comments
 (0)