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 support for font styles #22

Open
imnotashrimp opened this issue Dec 4, 2019 · 0 comments
Open

add support for font styles #22

imnotashrimp opened this issue Dec 4, 2019 · 0 comments

Comments

@imnotashrimp
Copy link
Owner

imnotashrimp commented Dec 4, 2019

Add support for bold, italics, link.

Should be simple enough with a regex on each string.

I think support for basic markdown/HTML should work here. Plugin should strip the markup and leave only the text

  • Bold
    • **text**, or __text__
    • <b>text</b>
  • Italics
    • _text_ or *text*
    • <i>text</i>
  • Links - strip the URL, leave only the placeholder
    • [text](https://whatever)
    • <a href="http://whatever data-other-attributes='also-whatever'>text</a>
  • Code
    • `text`
    • <code>text</code>

Open questions

  • How are we to handle things like using stars as decoration and not as markup? e.g., ***********
  • Probably worth using a library.
  • Commonmark only. No special markdown requirements.

Decisions that should be left out for now

  • Leave color handling out. There are lots of questions for this one, and I think I should wait for actual requests to come in before thinking through this one.

MVP decisions

  • Bold & italic only. Leave code and links for future release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant