Skip to content

refactor: use shiki transformerMetaHighlight to do meta highlight #4705

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Fro-Q
Copy link

@Fro-Q Fro-Q commented Apr 20, 2025

Description

  1. Fix the braces removal behavior at src/node/markdown/plugins/highlightLines.ts:

token.info += ' ' + lines

  1. Use shiki's transformerMetaHighlight to implement line highlighting with meta string.

Linked Issues

fixes #4704

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

Successfully merging this pull request may close these issues.

use a meta string to highlight lines
1 participant