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

Tasks saved in md keeps getting updated to rich text and that messes up the md file #70

Closed
accforgithubtest opened this issue Feb 5, 2024 · 5 comments
Labels
bug Something isn't working high priority

Comments

@accforgithubtest
Copy link

I think this is potentially a very critical bug, as any task saved in markdown format is lost permanently.

To recreate the issue -

  • Create a new lane and add new task.

  • Switch to the markdown format

  • Add a bunch of text in markdown

  • Result-1 - The correct markdown file is saved

  • Re-open the task in browser window.

  • Defaults back to rich text mode, and this messes up the whole markdown text in the task details/description.

  • Once you switch back into markdown, you are left with formatting issues, which is not markdown anymore.

  • ISSUE: Only way to fix the text now is manually.

If possible, I recommend that the textbox always defaults to markdown, instead of richtext (given this is tasks.md afterall :) )

Sample

First attempt at creating a new task - Initial File

# Project Name

## Planning

* [ ] Add Ideas
* [ ] Groom backlog
* [ ] Track progress

When re-opening the same task

# Project Name

## Planning

* \[ \] Add Ideas
* \[ \] Groom backlog
* \[ \] Track progress

Once a task is re-opened in the browser, the md file is also auto-saved in the messed up format.

@BaldissaraMatheus
Copy link
Owner

Thanks for reporting the issue, I'm checking it right now. My guess is that Stacks Editor (the text editor we're using right now) doesn't support checkboxes. If that's the case I may consider replace it with a different editor, since using checkboxes for tasks is something very reasonable. But in any case it shouldn't be escaping those characters.

About your suggestion of setting markdown mode as default, I think it makes sense and I'll create a new issue to track that and use this one for the bug you reported

@BaldissaraMatheus BaldissaraMatheus added bug Something isn't working high priority labels Feb 5, 2024
@accforgithubtest
Copy link
Author

I may consider replace it with a different editor

Would something like shd101wyy/markdown-preview-enhanced be a good candidate ?

I noticed it enables many other useful features like support for mermaid diagrams etc, So tasks.md will probably get a lot more functionality by using it.

@BaldissaraMatheus
Copy link
Owner

Would something like shd101wyy/markdown-preview-enhanced be a good candidate ?

Sure, any suggestions are welcome. Though this one seems to be an extension for vscode, so not sure if it could be used here

@accforgithubtest
Copy link
Author

ok, thanks for your reply.

I am not a developer myself, but heard another developer colleague of mine mention that he is using shd101wyy/markdown-preview-enhanced in vscode and was raving about it. so I asked him to show it to me and thought I will share it here as well. Unfortunate that it is not something that can be used here.

@BaldissaraMatheus
Copy link
Owner

Just released a new version that sets the editor's default mode to Markdown mode and saves the user preference in the browser's local storage, so it will load the last used mode. This change was included by #78.

The checkbox issue is being tracked on #76, so I'll close this one.

If it's not working properly or someone thinks it could be improved, feel free to comment here and I'll open the issue again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

2 participants