Skip to content

Inline copy code icon has weird display behavior #9

@Cordelya

Description

@Cordelya

Summary: copy-code icon has before and after line breaks in inline codeblocks, and doesn't show at all in fenced codeblocks.

Environment:

  • Logseq 0.6.6
  • Copy Code plugin 1.1.2
  • OS: Windows 10
  • Other plugins: logseq-calendars-plugin, logseq-quicktodo-plugin, logseq-recurrence-plugin, logseq-smartblocks (all up to date)
  • All plugins were installed via the Marketplace (ie not manually)
  • Logseq is generally not otherwise modified.

Consider the following block:

Automatically remount the share at boot. Add the following to `/etc/fstab`
```ini
//remote/share /local/mountpoint cifs credentials=/home/username/.smbcredentials,uid=username 0 0
```

As a screenshot:
block in markdown

When rendered, it displays like this:
rendered block

It looks as though the "copy code" button is being inserted into inline codeblocks with line breaks before and after. The button does not appear at all when I hover my mouse cursor over any fenced codeblock.

I have not altered the button's positioning from the default.

Let me know if you'd like me to try anything or if you need more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions