Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal highlighting #402

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Terminal highlighting #402

merged 1 commit into from
Jul 25, 2023

Conversation

pomber
Copy link
Contributor

@pomber pomber commented Jul 25, 2023

Support ansi codes in terminal codeblocks:

```terminal 
�[35m❯�[0m npm create astro -y

╭─────╮  �[36;1mHouston:
�[0m│ ◠ �[96m◡�[0m ◠  Initiating launch sequence...
╰─────╯

�[42m �[30mastro�[39m �[0m  �[32;1mv2.9.2�[0m �[1mLaunch sequence initiated.

�[0m  �[48;2;136;58;226m �[97mdir�[39m �[0m  Where should we create your new project?
         �[2m./cosmic-chroma

�[0m �[48;2;136;58;226m �[97mtmpl�[39m �[0m  How would you like to start your new project?
         �[2mEmpty
�[0m      �[32m✔�[0m  �[32mTemplate copied

�[0m �[48;2;136;58;226m �[97mdeps�[39m �[0m  Install dependencies?
         �[2mNo
�[0m      �[36m◼�[0m  �[36mNo problem!
�[0m         �[2mRemember to install dependencies after setup.

�[0m   �[48;2;136;58;226m �[97mts�[39m �[0m  Do you plan to write TypeScript?
         �[2mNo
�[0m      �[36m◼�[0m  �[36mNo worries!
�[0m         �[2mTypeScript is supported in Astro by default,
�[0m         �[2mbut you are free to continue writing JavaScript instead.

�[0m  �[48;2;136;58;226m �[97mgit�[39m �[0m  Initialize a new git repository?
         �[2mNo
�[0m      �[36m◼�[0m  �[36mSounds good!
�[0m         �[2mYou can always run �[0mgit init�[2m manually.

�[0m �[46m �[30mnext�[39m �[0m  �[1mLiftoff confirmed. Explore your project!

�[0m Enter your project directory using �[36mcd ./cosmic-chroma
�[0m Run �[36mnpm run dev�[0m to start the dev server. �[36mCTRL+C�[0m to stop.
 Add frameworks like �[36mreact�[0m or �[36mtailwind�[0m using �[36mastro add�[0m.

 Stuck? Join us at �[36mhttps://astro.build/chat

�[0m╭─────╮  �[36;1mHouston:
�[0m│ ◠ �[96m◡�[0m ◠  Good luck out there, astronaut! 🚀
╰─────╯
```

Version

Published prerelease version: v0.10.0-next.1

Changelog

🚀 Enhancement

  • @code-hike/mdx

🐛 Bug Fix

⚠️ Pushed to next

  • Remove examples from workspace (@pomber)
  • Add backticks to release message (@pomber)

Authors: 2

@vercel
Copy link

vercel bot commented Jul 25, 2023

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

@pomber pomber changed the title Update lighter Terminal highlighting Jul 25, 2023
@vercel vercel bot temporarily deployed to Preview – chtest July 25, 2023 10:15 Inactive
@vercel vercel bot temporarily deployed to Preview – playground July 25, 2023 10:16 Inactive
@pomber pomber added patch release PR created automatically for new releases labels Jul 25, 2023
@pomber pomber merged commit 6182f45 into next Jul 25, 2023
@pomber pomber deleted the terminal-highlighting branch July 25, 2023 13:56
@github-actions
Copy link
Contributor

Released in v0.10.0-next.1 🚀

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release PR created automatically for new releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant