cooklang / cooklang-obsidian

Edit and display CookLang recipes in Obsidian
MIT License
204 stars 16 forks source link

Can't seem to edit .cook files #40

Open ArcticFox037 opened 7 months ago

ArcticFox037 commented 7 months ago

What the title says; can't seem to edit the .cook files once they're created, and pasting just shows it in monospace font while remaining uneditable inside Obsidian.

solpyro commented 7 months ago

An additional symptom: when switching into edit mode, a bunch of XXXXXXs are rendered at the top of the file. refreshing the view (by navigating away and back, or by switching to rendered and back) gets rid of them, so they don't appear to be part of the file. It seems to only happen when first switching from render to edit

Cooklang Editor: v0.3.0 Obsidian: v1.5.3

dubadub commented 7 months ago

Thanks, I'll have a look next week.

tylermenezes commented 7 months ago

I'm also experiencing this issue, it looks like the problem is with CodeMirror. The editor actually is working, but there is no visible cursor. The x characters at the top are CodeMirror-measure.

edongashi commented 6 months ago

Just tried the plugin and it's completely broken when going into source mode.

image

jlweston commented 5 months ago

Also having similar issues with editing .cook files. In addition, toggling between edit and preview mode results in the preview displaying duplicated blocks - the blocks render correctly after re-opening the file, so it appears to be a presentation issue rather than a data issue. CEvNNEm