Skip to content

Add copy button to multiline mark #357

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

Merged
merged 2 commits into from
Apr 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/mdx/dev/content/comment-annotations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ console.log("hey")
Same with other annotations like `mark` and `box`.

```js
// mark(1:2)
function foo() {
// hey
// mark(1)
function foobarloremipsumfoobarloremipsumsitametfoobarloremipsumfoobarloremipsumsitamet() {
// mark[6:9] mark-box
console.log("hover me")
return 8
Expand Down Expand Up @@ -88,7 +89,7 @@ function lorem(ipsum, dolor = 1) {
# mark[3:7]
local sit=0
# label something something
dolor=$((sit - amet(dolor)))
dolor=$((sit - amet(dolor))
# link[19:29] https://github.com/code-hike/codehike
return $sit and consectetur(ipsum) or []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx/dev/files.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs"
import { remarkCodeHike } from "../src/index"
import { compile } from "@mdx-js/mdx"
import theme from "shiki/themes/rose-pine-moon.json"
import theme from "./theme.js"
import { withDebugger } from "mdx-debugger"

export async function getFiles() {
Expand Down
Loading