mirror of
https://github.com/moyf/easy-copy.git
synced 2026-07-22 05:43:47 +00:00
fix(link): 修复 markdown 格式的块链接复制文本
This commit is contained in:
parent
44944bcfd3
commit
01c54940c7
1 changed files with 2 additions and 2 deletions
|
|
@ -536,8 +536,8 @@ export default class EasyCopy extends Plugin {
|
|||
|
||||
// displayText = "^"+displayText;
|
||||
let blockIdLink = this.settings.linkFormat === LinkFormat.WIKILINK
|
||||
? `[[${filename}#^${blockId}|${displayText}]]`
|
||||
: `[^${displayText}](${filename}#^${blockId})`;
|
||||
? `[[${filename}#^${blockId}|${displayText}]]`
|
||||
: `[${displayText}](${filename}#^${blockId})`; // markdown 格式不能加,不然会变成内联脚注语法 [^xxx]
|
||||
|
||||
if (!autoDisplayText) {
|
||||
blockIdLink = this.settings.linkFormat === LinkFormat.WIKILINK
|
||||
|
|
|
|||
Loading…
Reference in a new issue