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

add message styling #44

Closed
mattmezza opened this issue Sep 16, 2018 · 5 comments
Closed

add message styling #44

mattmezza opened this issue Sep 16, 2018 · 5 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@mattmezza
Copy link
Owner

Would be nice to have the ability to send message with a lil bit of formatting like:

  • bold *bold*
  • italic /italic/
  • underline _underline_
  • line through ~line through~
  • code inline `var pippo = 0;`
@mattmezza mattmezza added the good first issue Good for newcomers label Sep 16, 2018
@coyotte508
Copy link
Contributor

This repo is useful: https://www.npmjs.com/package/marked

Although it adds an extra dependency (20kB), which could also be moved the backend instead.

@mattmezza
Copy link
Owner Author

@coyotte508 indeed, and also I think it is too much for what we would use it for...
I was thinking to use something lighter or to create a light package for it (eventually, it should not be that difficult).

We don't wanna add full support to markdown, but just a small set of formatting options (I'm not even sure about the underline for instance...).

@mattmezza
Copy link
Owner Author

It is also related to #24 (you might wanna go back to a previous msg to strike through something for instance)

@mattmezza mattmezza self-assigned this Nov 11, 2018
@mattmezza
Copy link
Owner Author

working on this, almost ready ;)

@mattmezza
Copy link
Owner Author

added using https://github.com/mattmezza/msgdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants