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

🐛 fix: Code blocks cannot switch highlight languages #251

Closed
wants to merge 1 commit into from

Conversation

sxjeru
Copy link
Contributor

@sxjeru sxjeru commented Jan 23, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

原本切换代码框顶部的语言,高亮不会跟随切换。

由于不熟悉项目,采用的是非常粗暴的方法,希望有更好的替代方案。

📝 补充信息 | Additional Information

Copy link

vercel bot commented Jan 23, 2025

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

Name Status Preview Updated (UTC)
lobe-ui ✅ Ready (Inspect) Visit Preview Jan 23, 2025 0:15am

@lobehubbot
Copy link
Member

👍 @sxjeru


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes missing coverage. Please review.

Project coverage is 0.29%. Comparing base (5851677) to head (539408b).
Report is 304 commits behind head on master.

Files with missing lines Patch % Lines
src/Highlighter/FullFeatured.tsx 0.00% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #251      +/-   ##
=========================================
+ Coverage    0.00%   0.29%   +0.29%     
=========================================
  Files         330     468     +138     
  Lines       22325   28810    +6485     
  Branches      330     488     +158     
=========================================
+ Hits            0      85      +85     
- Misses      21995   28260    +6265     
- Partials      330     465     +135     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

pkg-pr-new bot commented Jan 23, 2025

Open in Stackblitz

npm i https://pkg.pr.new/lobehub/lobe-ui/@lobehub/ui@251

commit: 539408b

github-actions bot pushed a commit that referenced this pull request Jan 24, 2025
### [Version 1.164.5](v1.164.4...v1.164.5)
<sup>Released on **2025-01-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Code blocks cannot switch highlight languages (resolve.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Code blocks cannot switch highlight languages (resolve, closes [#251](#251) ([465d2fe](465d2fe))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.164.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sxjeru sxjeru deleted the fork1 branch January 24, 2025 10:19
@sxjeru sxjeru restored the fork1 branch January 24, 2025 10:20
github-actions bot pushed a commit to bentwnghk/lobe-ui that referenced this pull request Jan 25, 2025
### [Version&nbsp;1.34.4](v1.34.3...v1.34.4)
<sup>Released on **2025-01-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Code blocks cannot switch highlight languages (resolve, Fix Form vertical layout.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Code blocks cannot switch highlight languages (resolve, closes [lobehub#251](https://github.com/bentwnghk/lobe-ui/issues/251) ([465d2fe](465d2fe))
* **misc**: Fix Form vertical layout ([13bbb75](13bbb75))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants