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

[Feature] Support editing formulas #57

Open
dhda opened this issue May 6, 2020 · 2 comments
Open

[Feature] Support editing formulas #57

dhda opened this issue May 6, 2020 · 2 comments
Labels
feature request New feature or request

Comments

@dhda
Copy link

dhda commented May 6, 2020

Is your feature request related to a problem? Please describe.
I want to be able to edit math formulas after I enter them. There seems to be noway to do it now–once they are entered, that's it. No editing, no way to recover the source LaTeX that created the formula.

Describe the solution you'd like
The minimum solution is to have the formula editor load the source of the formula that is currently under the cursor or selected, and allow it to be edited and added again.

My ideal solution would be to have formulas entered and stored as text surrounded by delimiters like $...$ that is automatically rendered, and able to be edited inline (maybe by double clicking or right click edit or something like that). It seems like your use of markdown is more as a shortcut as opposed to any kind of underlying implementation so that might not be super feasible without a lot of work.

@johnozbay johnozbay changed the title Support editing formulas [Feature] Support editing formulas Jun 7, 2020
@johnozbay johnozbay added the feature request New feature or request label Jun 7, 2020
@johnozbay
Copy link
Member

Hello there 👋🏻

This is a fantastic idea! The LaTeX editor is long overdue some cosmetic updates anyway! I'll see what I can do to improve based on your feedback. I'm sure we can make this process easier somehow.

Shortly, formulas are rendered sort of like youtube embeds. And the problem with this is that, the formula you've typed gets processed before it gets displayed. We do store the original formula in the editor however, so that's good news, and it should be possible to add a simple edit-formula box much like the edit url/hyperlink box, or at least find a way to make it display the raw formula text somewhere.

As for markdown-like rendering. This I'm afraid we can't do, in the interest of continuing to be markdown-spec compliant. Markdown specifications don't actually have math/LaTeX etc. We can add in our own flavor today, but there's nothing stopping markdown specs from getting updated tomorrow with something like $...$ makes something bold etc. (just an example, you got the idea)

So I'm not a fan of inventing our own markdown shortcuts, and I think it's crucial that Cryptee is inter-operable with other markdown editors. (Both from a long term code-maintenance standpoint for us, and from a user-experience standpoint)

I'll keep this issue open, and keep you posted!

@josh3way
Copy link

Hello, sorry for reopening this topic. Is it technically possible to add a feature? I think it would be great for those who use LaTeX a lot. 🤩

image

As for markdown-like rendering. This I'm afraid we can't do, in the interest of continuing to be markdown-spec compliant. Markdown specifications don't actually have math/LaTeX etc. We can add in our own flavor today, but there's nothing stopping markdown specs from getting updated tomorrow with something like $...$ makes something bold etc. (just an example, you got the idea)

As mentioned, I believe that direct interaction with the formula would be better instead of tags ($...$).

My suggestion is something like that:

image

Thank you!

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

No branches or pull requests

3 participants