copyThat-airtable-figma icon indicating copy to clipboard operation
copyThat-airtable-figma copied to clipboard

add support for font styles

Open imnotashrimp opened this issue 4 years ago • 0 comments

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.

imnotashrimp avatar Dec 04 '19 04:12 imnotashrimp