Skip to content

Commit 6182f45

Browse files
authored
Merge pull request #402 from code-hike/terminal-highlighting
Terminal highlighting
2 parents fecddba + 347cd90 commit 6182f45

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed

packages/mdx/dev/content/test.mdx

+45
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,48 @@ function foobarloremipsumfoobarloremipsumsitametfoobarloremipsumfoobarloremipsum
77
return 8
88
}
99
```
10+
11+
```terminal
12+
❯ npm create astro -y
13+
14+
╭─────╮ Houston:
15+
│ ◠ ◡ ◠ Initiating launch sequence...
16+
╰─────╯
17+
18+
 astro  v2.9.2 Launch sequence initiated.
19+
20+
  dir  Where should we create your new project?
21+
./cosmic-chroma
22+
23+
  tmpl  How would you like to start your new project?
24+
Empty
25+
 ✔ Template copied
26+
27+
  deps  Install dependencies?
28+
No
29+
 ◼ No problem!
30+
 Remember to install dependencies after setup.
31+
32+
  ts  Do you plan to write TypeScript?
33+
No
34+
 ◼ No worries!
35+
 TypeScript is supported in Astro by default,
36+
 but you are free to continue writing JavaScript instead.
37+
38+
  git  Initialize a new git repository?
39+
No
40+
 ◼ Sounds good!
41+
 You can always run git init manually.
42+
43+
  next  Liftoff confirmed. Explore your project!
44+
45+
 Enter your project directory using cd ./cosmic-chroma
46+
 Run npm run dev to start the dev server. CTRL+C to stop.
47+
Add frameworks like react or tailwind using astro add.
48+
49+
Stuck? Join us at https://astro.build/chat
50+
51+
╭─────╮ Houston:
52+
│ ◠ ◡ ◠ Good luck out there, astronaut! 🚀
53+
╰─────╯
54+
```

packages/mdx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"coverage": "vitest run --coverage"
4545
},
4646
"dependencies": {
47-
"@code-hike/lighter": "0.7.3",
47+
"@code-hike/lighter": "0.8.2",
4848
"node-fetch": "^2.0.0"
4949
},
5050
"devDependencies": {

yarn.lock

+11-4
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,12 @@
455455
"@babel/helper-validator-identifier" "^7.19.1"
456456
to-fast-properties "^2.0.0"
457457

458-
"@code-hike/[email protected]":
459-
version "0.7.3"
460-
resolved "https://registry.yarnpkg.com/@code-hike/lighter/-/lighter-0.7.3.tgz#729a7ab484f11069d258c34dfe39be918f093e39"
461-
integrity sha512-IW3nBrnQRSoYDY2suXUjNZegCGVH3ljEH5w51chazy30s103CdpwSwvFya3e6GbY/xfbyAVj+Uyg6HH4L5T6tw==
458+
"@code-hike/[email protected]":
459+
version "0.8.2"
460+
resolved "https://registry.yarnpkg.com/@code-hike/lighter/-/lighter-0.8.2.tgz#21fe70c339b645718606a8aa301f15524e5f829f"
461+
integrity sha512-h7PA2+90rIRQWamxeHSpcgVLs9hwhz8UW8+RG+vYIYh2Y4F2GTa4c+7S5HQH/BKTyMPv5yrSCEwhCB605gO5og==
462+
dependencies:
463+
ansi-sequence-parser "^1.1.0"
462464

463465
"@codesandbox/sandpack-client@^0.19.0":
464466
version "0.19.0"
@@ -1964,6 +1966,11 @@ ansi-regex@^5.0.1:
19641966
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
19651967
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
19661968

1969+
ansi-sequence-parser@^1.1.0:
1970+
version "1.1.0"
1971+
resolved "https://registry.yarnpkg.com/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz#4d790f31236ac20366b23b3916b789e1bde39aed"
1972+
integrity sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ==
1973+
19671974
ansi-styles@^3.2.1:
19681975
version "3.2.1"
19691976
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"

0 commit comments

Comments
 (0)