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

feat: line numbers support in magic-move #1619

Merged
merged 1 commit into from
May 28, 2024

Conversation

kermanx
Copy link
Member

@kermanx kermanx commented May 28, 2024

resolve #1470.

Copy link

netlify bot commented May 28, 2024

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 6e1f289
🔍 Latest deploy log https://app.netlify.com/sites/slidev/deploys/66553d48a134b500080f9dbd
😎 Deploy Preview https://deploy-preview-1619--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -9,12 +9,17 @@ import { reCodeBlock } from './code-wrapper'
// eslint-disable-next-line regexp/no-useless-quantifier, regexp/no-super-linear-backtracking
const reMagicMoveBlock = /^````(?:md|markdown) magic-move(?: *(\{[^}]*\})?([^\n]*))?\n([\s\S]+?)^````$/gm

function parseLineNumbersOption(options: string) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the best way.

@antfu antfu merged commit f893705 into slidevjs:main May 28, 2024
18 checks passed
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.

In shiki-magic-move code block display line number
2 participants