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

Show Markdown effects on text in the UI #511

Open
HusniMuhammad opened this issue Nov 23, 2023 · 1 comment
Open

Show Markdown effects on text in the UI #511

HusniMuhammad opened this issue Nov 23, 2023 · 1 comment
Labels
Accepted! This feature is accepted. We WILL work on it enhancement Not a bug, but an interesting suggestion UI Involves the user interface

Comments

@HusniMuhammad
Copy link

Add text formating with options like
Bold
Italic
Underline
Strike-though

Text coloring (optional)

Please add if you can

Thanks :)

@HusniMuhammad HusniMuhammad added the enhancement Not a bug, but an interesting suggestion label Nov 23, 2023
@CampelloManuel
Copy link
Collaborator

CampelloManuel commented Nov 25, 2023

It is possible.
For example, text written **like this** could be displayed in bold in the app.
It would be only a graphical change, as the note would still be saved in plain text.

Implementation roadmap:

  • decide wether https://github.com/noties/Markwon or https://github.com/yydcdut/RxMarkdown should be used
  • when the text of the note is read and set in the TextView, treat it as markdown and convert it to Spannable, so that it can be set as formatted Text on the TextView
  • add checks to fallback to plaintext in case of crashes or long note texts
  • only render the first N lines of text as markdown, with N = the number of rows, from the app settings
  • test (with multiple app settings) and publish

@CampelloManuel CampelloManuel added UI Involves the user interface Accepted! This feature is accepted. We WILL work on it labels Nov 25, 2023
@CampelloManuel CampelloManuel changed the title It would be great that text format options are available Show Markdown effects on text in the UI Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted! This feature is accepted. We WILL work on it enhancement Not a bug, but an interesting suggestion UI Involves the user interface
Projects
None yet
Development

No branches or pull requests

2 participants