fjira icon indicating copy to clipboard operation
fjira copied to clipboard

Rich text tables in description and comments renders as plain-text code

Open trincasidra opened this issue 1 year ago • 4 comments

Desktop:

  • OS: ArchLinux (6.6.7-arch1-1)
  • Terminal: kitty (0.31.0)
  • Shell: bash (5.2.21)
  • Architecture: x86_64
  • Fjira version: 1.1.1

Describe the bug Tables in rich text description and comments show the underlying table code as plain-text.

To Reproduce Steps to reproduce the behavior:

  1. Create a jira issue, adding a table to its description.
  2. View this issue in fjira.
  3. Optionally, add a comment to the issue adding a table, and view that as well.

Expected behavior The table shows and is readable in a format similar to this.

Additional notes Issue in jira: 2023-12-18_13-49 Issue in fjira: 2023-12-18_13-51

trincasidra avatar Dec 18 '23 13:12 trincasidra

I think it's somehow relates to https://github.com/mk-5/fjira/issues/55

I will take this up soon - the problem is not that trival .. because tcell doesn't support any kind of markdown formatting.

mk-5 avatar Dec 18 '23 21:12 mk-5

Glad to hear! I'm not entirely sure it's the same issue, as the tables have this weird adf json-like structure. I'd definitely agree with the old table format that used the | characters.

But in all honesty, I don't really know how tcell works so I may be shooting in the dark.

trincasidra avatar Dec 19 '23 00:12 trincasidra

@trincasidra it's plus-minus about parsing markdown, and render it in tcell. So I need to do some selection - which markdown tags will be supported from the beginning.

I'm thinking about:

  • list
  • basic fonts tags like bold, italic
  • links
  • tables

I'll take it up soon - but first I'd like to take&close this one: https://github.com/mk-5/fjira/issues/93

mk-5 avatar Dec 23 '23 18:12 mk-5

Totally agree, no worries!

trincasidra avatar Dec 27 '23 08:12 trincasidra