obsidian-kindle-plugin icon indicating copy to clipboard operation
obsidian-kindle-plugin copied to clipboard

[BUG] Book names with [] in them Break Markdown links

Open talios opened this issue 3 years ago • 0 comments

Describe the bug

When importing highlights from books that include [] in them ( such as in my case, Ricochet Joe [Kindle in Motion]), you can't link to the actual file as the close brace causes the markdown links to end one character early.

Method of syncing

  • Amazon Kindle Reader
  • My Clippings file (please attach file that can be used to recreate issue)

To Reproduce

  • Import the My Clippings File My Clippings.txt

  • In another note, link to the page with [[Ricochet Joe [Kindle in Motion]]]

  • Take note the third ] doesn't appear as part of the link, and following it will create a new file.

Expected behaviour

The linked page will open in Obsidian.

Desired behaviour

Possibly rewrite the page title to Ricochet Joe (Kindle in Motion) to prevent breaking markdown.

Metadata

  • OS: macOS
  • Plugin version 1.6.2
  • Obsidian version 0.14.15

talios avatar Jul 09 '22 08:07 talios