BearToCode / carta

A lightweight, fast and extensible Svelte Markdown editor and viewer.
https://beartocode.github.io/carta/
MIT License
264 stars 10 forks source link

Plans for Undo-Redo Functionality? #63

Closed mithi closed 2 weeks ago

mithi commented 2 weeks ago

Hi,

Thank you for the incredible work you have done for the svelte community. This project is truly valuable. I would love to contribute to the development of this project.

I was just wondering if there are any plans to incorporate undo-redo for this markdown editor? If not, I would love to code this functionality myself but I don't know where to start.

I would appreciate it if any ideas that would point me to the right direction so that I can implement this.

Thank you so much and I hope please let me know if this is against the guidelines to post this as an issue and if I should move this question to the discussions instead. Feel free to close this issue if deemed inappropriate. Thank you!

BearToCode commented 2 weeks ago

Hello,

Thanks for the kind words and for being interested in contributing to the project. Currently, there is already a simple implementation of undo-redos here:

packages/carta-md/src/lib/internal/history.ts

However, if you'd like to improve or change it, feel free to open a PR!

No problem discussing this here

mithi commented 2 weeks ago

Oh.. Thank you! I will study it and close this issue. Thank you so much for your reply!