Skip to content

double (or triple) backtick code blocks don't copy correctly #13

@iniazi

Description

@iniazi

Using Obsidian 1.5.12, copy inline code 1.2

Example of broken markdown:

  • for pool in `rados lspools`; do echo "Pool: $pool"; done

This results, in two issues. First is buggy output during edit mode; last double backtick shows up with a long space in between when i'm not hovering mouse over or with the copy-inline-code icon when mouse is over the line:

editing: no-hover
Screenshot 2024-05-04 013840

editing: hover:
Screenshot 2024-05-04 014102

Second issue is that when I click the icon it doesn't copy the code into buffer. So, i guess the plugin only handles single backticks only. Or possibly I'm running into an issue with another plugin maybe interfering?

I'm not that well versed in javascript to suggest a fix. Most of my usecases are shell backticks which I can swap with "$( ... )" instead so my code would still work but there are probably some other cases where i have to save the backticks in the code etc. Also backticks are easier to type. :)

Thanks for reading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions