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

Highlighting within a table not working #90

Open
kamransoomro84 opened this issue Feb 27, 2024 · 3 comments
Open

Highlighting within a table not working #90

kamransoomro84 opened this issue Feb 27, 2024 · 3 comments

Comments

@kamransoomro84
Copy link

If I select some existing text within a table, right click and try to highlight, I get the following error:

app.js:1 Uncaught RangeError: Applying change set to a document with the wrong length
    at t.apply (app.js:1:288552)
    at e.get (app.js:1:306772)
    at e.applyTransaction (app.js:1:311889)
    at e.get (app.js:1:307092)
    at e.update (app.js:1:465799)
    at e.dispatchTransactions (app.js:1:463531)
    at e.dispatch (app.js:1:465414)
    at app.js:1:1329741

It works as expected on normal text.

Obsidian version: 1.5.8
Highlightr version: 1.2.2

@EpicVoyage
Copy link

As a temporary work-around you can switch to Source Mode for highlighting text in tables, but I am looking for a long-term solution to this as well.

@MarieSheridan2014
Copy link

This number is too small
https://github.com/chetachiezikeuzor/Highlightr-Plugin/blob/61341a464456cdc868ffa1480341136025ec8389/src/plugin/main.ts#L143C17-L143C19

If you want to change it locally, then go here
.obsidian\plugins\highlightr-plugin\main.js
It was line 3587 for me
(I increased mine to 150, no idea what an ideal number would be here!!)

@EpicVoyage
Copy link

EpicVoyage commented Apr 28, 2024

There is a project fork which fixes this issue:

https://github.com/KraXen72/obsidian-painter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants