Skip to content

Commit 97fc469

Browse files
committed
fix: use named import for mdream
1 parent 68b3019 commit 97fc469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nimiq-vitepress-theme/src/composables/useSourceCode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import mdream from 'mdream'
1+
import { htmlToMarkdown } from 'mdream'
22
import { join } from 'pathe'
33
import { useData } from 'vitepress'
44
import { computed, onBeforeUnmount, ref } from 'vue'
@@ -233,7 +233,7 @@ export function useSourceCode() {
233233
}
234234

235235
// Convert HTML to markdown using mdream
236-
const markdown = await mdream(contentEl.innerHTML)
236+
const markdown = await htmlToMarkdown(contentEl.innerHTML)
237237

238238
await copy(markdown)
239239
toast.success('Page content copied to clipboard')

0 commit comments

Comments
 (0)