Skip to content

Commit

Permalink
fix: support CRLF for magic move
Browse files Browse the repository at this point in the history
  • Loading branch information
DChernov authored and DChernov committed Apr 17, 2024
1 parent ee4e710 commit f1aab6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/syntax/transform/code-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { normalizeRangeStr } from './utils'

export const reCodeBlock = /^```([\w'-]+?)(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?(.*?))?\n([\s\S]+?)^```$/mg
export const reCodeBlock = /^```([\w'-]+?)(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?(.*?))?\r?\n([\s\S]+?)^```$/mg

/**
* Transform code block with wrapper
Expand Down

0 comments on commit f1aab6e

Please sign in to comment.