埋め込み内のコードハイライトではコピーを使えないように
This commit is contained in:
parent
48d3b9a7b8
commit
153a25bd30
|
@ -17,7 +17,7 @@ import MkCodeInline from '@/components/MkCodeInline.vue';
|
|||
import MkGoogle from '@/components/MkGoogle.vue';
|
||||
import MkSparkle from '@/components/MkSparkle.vue';
|
||||
import MkA, { MkABehavior } from '@/components/global/MkA.vue';
|
||||
import { host } from '@/config.js';
|
||||
import { host, embedPage } from '@/config.js';
|
||||
import { defaultStore } from '@/store.js';
|
||||
import { nyaize as doNyaize } from '@/scripts/nyaize.js';
|
||||
import { safeParseFloat } from '@/scripts/safe-parse.js';
|
||||
|
@ -377,6 +377,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
|
|||
key: Math.random(),
|
||||
code: token.props.code,
|
||||
lang: token.props.lang ?? undefined,
|
||||
copyButton: !embedPage, // 埋め込みページからクリップボードにはアクセスさせない
|
||||
})];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue