mgmeyers / obsidian-smart-typography

Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
GNU General Public License v3.0
241 stars 11 forks source link

Plugin stops live preview etc. #42

Open eyolf opened 1 year ago

eyolf commented 1 year ago

A combination of things happen, occasionally:

This error message shows up in the console when these things happen:

plugin:obsidian-smart-typography:787 Uncaught TypeError: Cannot read properties of undefined (reading 'ranges')
    at eval (plugin:obsidian-smart-typography:787:86)
    at ln (app.js:1:274454)
    at t.iterChanges (app.js:1:271676)
    at Array.eval (plugin:obsidian-smart-typography:755:32)
    at app.js:1:292139
    at Zn (app.js:1:292237)
    at e.update (app.js:1:293570)
    at e.dispatch (app.js:1:434438)
    at fs (app.js:1:431351)
    at e.onChange (app.js:1:432962)

so somewhere there is a connection to the Smart Typography plugin; whether it is the culprit or just standing somewhere along the way, I can't tell. I've now disabled the plugin, and the problem has disappeared.