We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b3019 commit 97fc469Copy full SHA for 97fc469
packages/nimiq-vitepress-theme/src/composables/useSourceCode.ts
@@ -1,4 +1,4 @@
1
-import mdream from 'mdream'
+import { htmlToMarkdown } from 'mdream'
2
import { join } from 'pathe'
3
import { useData } from 'vitepress'
4
import { computed, onBeforeUnmount, ref } from 'vue'
@@ -233,7 +233,7 @@ export function useSourceCode() {
233
}
234
235
// Convert HTML to markdown using mdream
236
- const markdown = await mdream(contentEl.innerHTML)
+ const markdown = await htmlToMarkdown(contentEl.innerHTML)
237
238
await copy(markdown)
239
toast.success('Page content copied to clipboard')
0 commit comments