shuding/nextra

Copy Markdown copies source Code not markdown

開放

#4,791 建立於 2025年9月14日

 (3 則留言) (0 個反應) (0 位負責人)TypeScript (1,413 個分叉)user submission
bughelp wanted

倉庫指標

星標
 (13,807 顆星)
PR 合併指標
 (平均合併 6天 16小時) (30 天內合併 3 個 PR)

描述

Describe the bug

The copy to markdown button does copy the source code of the page and not a markdown version of it. I would, however, expect to get a markdown version of the page and would prefer not to expose my source code.

To Reproduce

Generate two pages

page1/page.mdx page2/page.mdx

in page 1, import page 2.

import Page2 from '../page2/page2.mdx';

<Page2 />

Klick on the copy button. Currently it copies the source code, not the markdown.

Expected behavior

Copies rendered content as markdown

Screenshots

Desktop

  • OS: Mac OS
  • Browser: Safari
  • Version: 18.6

貢獻者指南