Skip to content

Commit 4c8f649

Browse files
authored
Merge pull request #357 from code-hike/mark-copy-button
Add copy button to multiline mark
2 parents d459bd4 + aa719d3 commit 4c8f649

File tree

7 files changed

+884
-4
lines changed

7 files changed

+884
-4
lines changed

packages/mdx/dev/content/comment-annotations.mdx

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ console.log("hey")
2323
Same with other annotations like `mark` and `box`.
2424

2525
```js
26-
// mark(1:2)
27-
function foo() {
26+
// hey
27+
// mark(1)
28+
function foobarloremipsumfoobarloremipsumsitametfoobarloremipsumfoobarloremipsumsitamet() {
2829
// mark[6:9] mark-box
2930
console.log("hover me")
3031
return 8
@@ -88,7 +89,7 @@ function lorem(ipsum, dolor = 1) {
8889
# mark[3:7]
8990
local sit=0
9091
# label something something
91-
dolor=$((sit - amet(dolor)))
92+
dolor=$((sit - amet(dolor))
9293
# link[19:29] https://github.com/code-hike/codehike
9394
return $sit and consectetur(ipsum) or []
9495
}

packages/mdx/dev/files.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "fs"
22
import { remarkCodeHike } from "../src/index"
33
import { compile } from "@mdx-js/mdx"
4-
import theme from "shiki/themes/rose-pine-moon.json"
4+
import theme from "./theme.js"
55
import { withDebugger } from "mdx-debugger"
66

77
export async function getFiles() {

0 commit comments

Comments
 (0)