Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Cross-paragraph highlights are discarded once a single paragraph highlight is made #352

Open
fnuttens opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fnuttens
Copy link

fnuttens commented Feb 3, 2025

Version:

  • OS: Fedora Linux
  • Browser: Firefox 134.0.2
  • Web Clipper version: 0.10.7
  • Obsidian version: 1.8.4

Describe the bug

I discovered this bug while reading this article. I’m not sure if this is a general issue or if it’s due to the DOM structure of this specific page.

Step 1: add a cross-paragraph section (click and drag)

Image

Step 2: add a single paragraph highlight (click)

Image

The first highlight has been discarded.

Expected behavior

The first highlight is not discarded.

URLs where the bug occurs

https://nmn.gl/blog/ai-illiterate-programmers

Your template file

{
  "schemaVersion": "0.1.0",
  "name": "Article",
  "behavior": "create",
  "noteContentFormat": "\n**Summary**:: {{description}}\n\n{{content}}",
  "properties": [
    {
      "name": "type",
      "value": "article",
      "type": "text"
    },
    {
      "name": "title",
      "value": "{{title}}",
      "type": "text"
    },
    {
      "name": "source",
      "value": "{{url}}",
      "type": "text"
    },
    {
      "name": "authors",
      "value": "{{author|split:\\\", \\\"|wikilink|join}}",
      "type": "multitext"
    },
    {
      "name": "tags",
      "value": "",
      "type": "multitext"
    },
    {
      "name": "published",
      "value": "{{published}}",
      "type": "date"
    },
    {
      "name": "created",
      "value": "{{date}}",
      "type": "date"
    },
    {
      "name": "updated",
      "value": "{{date}}",
      "type": "date"
    }
  ],
  "triggers": [],
  "noteNameFormat": "{{title}}",
  "path": "literature-notes"
}
@fnuttens fnuttens added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant