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

[Enhancement]: Markdown changes only update once the text area is closed #599

Open
1 task done
MrGumpIT opened this issue Feb 12, 2024 · 6 comments
Open
1 task done
Assignees
Labels
enhancement Small enhancements to existing features

Comments

@MrGumpIT
Copy link
Contributor

Which feature is your request related to?

markdown

Describe your request for enhancements!

I think that when I write in markdown if for example I use an H1 this should be immediately shown as such, and not after the insertion is finished and the text area is closed

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MrGumpIT MrGumpIT added the enhancement Small enhancements to existing features label Feb 12, 2024
@CodeDoctorDE
Copy link
Member

That's a good idea.
But I would show the # in the preview to have it easy to remove it again.
The app uses https://pub.dev/documentation/markdown/latest/ for markdown rendering. I'm currently not sure how I configure it to keep the #, *, ...

@MrGumpIT
Copy link
Contributor Author

I thought you could render the item once you hit enter. In which files is markdown handled?

@CodeDoctorDE
Copy link
Member

In edit mode the markdown won't be rendered.
It's inside app/lib/renderers/elements/markdown.dart

@MrGumpIT
Copy link
Contributor Author

I managed to get the markdown in edit mode, however I can't get an acknowledgment of when the enter key is pressed. I think an alternative would be to have a button to choose to enable live markdown editor. Unless you have some idea how to recognize a submit button or a line break

@CodeDoctorDE
Copy link
Member

What do you mean with that?
look at the action in the label handler.
But i don't see why you need to check that. New line isn't submitting, it's just, making a new line.

@MrGumpIT
Copy link
Contributor Author

I mean that now when you write you see the text formatted in markdown. But I would have liked it to happen when I pressed the enter key. But I don't know how to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small enhancements to existing features
Projects
Status: 📕 Todo
Development

No branches or pull requests

2 participants