Aaron
Aaron
I think this might be an issue with the pasting rules regex, but not sure yet. Could you include the latex string you are having the issue with and your...
> Ah I think my version had an extra `\` at the beginning? > > Anyway, is there a way to allow editing without requiring a backspace? Like it the...
> @aarkue Can you try pasting stuff from https://tiptap.dev/docs/editor/api/extensions/mathematics#katex-options example and see if it renders automatically? > > I tried and it doesn't. > Screen.Recording.2024-06-08.at.14.25.01.mov Thanks for the reproduction example!...
Some progress: The TipTap APIs (PasteRules and InputRules) __do not trigger__ when pasting rich HTML content mixes with (plain text) LaTeX. Using parseHTML is also not applicable, as the example...
Yes definitively, we can keep this issue open for tracking! Cheers
@xiangshu233 hi, I tried pasting the formula manually in the demo page, and it worked without problems. However, my theory is that you are automatically inserting the math content (e.g.,...
@xiangshu233 No problem! I would actually recommend inserting via JSON instead of HTML to be more robust for future updates, but both should work fine for now. Regarding the pasting...
@xiangshu233 Ahh okay, thanks for confirming! This is exactly the thing this original issue is about. Fixing this will probably require using the ProseMirror API to handle such paste event...
> @aarkue Hello, sorry to bother you. I am currently using this plugin. But I encountered a strange problem: Whether using JSON or HTML to insert, the formula converted by...
Thanks @eugenefischer ! I experimented with updating the regex, also mitigating some other potential future issues. Could you try if the version [1.3.3-beta.1](https://www.npmjs.com/package/@aarkue/tiptap-math-extension/v/1.3.3-beta.1) from npm works well for you? The...