code-hike / codehike

Marvellous code walkthroughs
https://codehike.org
MIT License
4.39k stars 135 forks source link

Terminal highlighting #402

Closed pomber closed 11 months ago

pomber commented 11 months ago

Support ansi codes in terminal codeblocks:

```terminal 
❯ npm create astro -y

╭─────╮  Houston:
│ ◠ ◡ ◠  Initiating launch sequence...
╰─────╯

 astro   v2.9.2 Launch sequence initiated.

   dir   Where should we create your new project?
         ./cosmic-chroma

  tmpl   How would you like to start your new project?
         Empty
      ✔  Template copied

  deps   Install dependencies?
         No
      ◼  No problem!
         Remember to install dependencies after setup.

    ts   Do you plan to write TypeScript?
         No
      ◼  No worries!
         TypeScript is supported in Astro by default,
         but you are free to continue writing JavaScript instead.

   git   Initialize a new git repository?
         No
      ◼  Sounds good!
         You can always run git init manually.

  next   Liftoff confirmed. Explore your project!

 Enter your project directory using cd ./cosmic-chroma
 Run npm run dev to start the dev server. CTRL+C to stop.
 Add frameworks like react or tailwind using astro add.

 Stuck? Join us at https://astro.build/chat

╭─────╮  Houston:
│ ◠ ◡ ◠  Good luck out there, astronaut! 🚀
╰─────╯

<!-- GITHUB_RELEASE PR BODY: prerelease-version -->
# Version

Published prerelease version: `v0.10.0-next.1`

<details>
  <summary>Changelog</summary>

  #### 🚀 Enhancement

  - `@code-hike/mdx`
    - Use lighter annotations [#398](https://github.com/code-hike/codehike/pull/398) ([@pomber](https://github.com/pomber))

  #### 🐛 Bug Fix

  - Add new release message [#383](https://github.com/code-hike/codehike/pull/383) ([@pomber](https://github.com/pomber))
  - `@code-hike/mdx`
    - Terminal highlighting [#402](https://github.com/code-hike/codehike/pull/402) ([@pomber](https://github.com/pomber))
    - Stable dimensions [#397](https://github.com/code-hike/codehike/pull/397) ([@pomber](https://github.com/pomber))
    - Add expand button to codeblocks [#396](https://github.com/code-hike/codehike/pull/396) ([@pomber](https://github.com/pomber))
    - Add static toggle [#395](https://github.com/code-hike/codehike/pull/395) ([@pomber](https://github.com/pomber))

  #### ⚠️ Pushed to `next`

  - Remove examples from workspace ([@pomber](https://github.com/pomber))
  - Add backticks to release message ([@pomber](https://github.com/pomber))

  #### Authors: 2

  - [@dphuang2](https://github.com/dphuang2)
  - Rodrigo Pombo ([@pomber](https://github.com/pomber))
</details>
<!-- GITHUB_RELEASE PR BODY: prerelease-version -->
vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chtest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2023 10:16am
playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2023 10:16am
github-actions[bot] commented 11 months ago

Released in v0.10.0-next.1 :rocket:

Thanks for using Code Hike! Become a sponsor and help us keep innovating.