velo icon indicating copy to clipboard operation
velo copied to clipboard

Implement simple bevy-markdown renderer

Open Dimchikkk opened this issue 2 years ago • 6 comments

Support markdown syntax in rectangle. Render markdown once a user stops editing rectangle.

Features:

  • [x] bold text style
  • [x] italic text style
  • [x] links
  • [ ] inline images
  • [ ] headings
  • [x] inline code
  • [x] code block with syntax highlighting
  • [x] ordered/unordered lists
  • [ ] quotes
  • [ ] tables
  • [ ] strikethrough text
  • [ ] checkboxes

Dimchikkk avatar May 02 '23 23:05 Dimchikkk

Useful links:

  • https://github.com/wooorm/markdown-rs
  • https://github.com/trishume/syntect for syntax highlighting
  • https://dillinger.io/
  • https://commonmark.org/help/

Dimchikkk avatar May 03 '23 16:05 Dimchikkk

Bold/italic/links implemented here: https://github.com/StaffEngineer/velo/pull/96

Dimchikkk avatar May 06 '23 22:05 Dimchikkk

Basic syntax highlighting: https://github.com/StaffEngineer/velo/pull/99

Dimchikkk avatar May 09 '23 19:05 Dimchikkk

Headers & inline code: https://github.com/StaffEngineer/velo/pull/109

Dimchikkk avatar May 16 '23 06:05 Dimchikkk

Lists: https://github.com/StaffEngineer/velo/pull/122

Dimchikkk avatar May 28 '23 12:05 Dimchikkk

Headings support was temporary removed due to migration to cosmic-text.

https://github.com/pop-os/cosmic-text/pull/150 should allow to return headings support back.

Dimchikkk avatar Jun 15 '23 21:06 Dimchikkk