textual-paint icon indicating copy to clipboard operation
textual-paint copied to clipboard

markdown support ?

Open shodanx2 opened this issue 1 year ago • 2 comments

Markdown seems like it would be a great fit for an output format, maybe even "copy to clipboard as markdown", the whole image, or just a selection

shodanx2 avatar Sep 13 '23 06:09 shodanx2

Markdown doesn't support color, except when using HTML tags. I actually did try to support Markdown as a read/write format, and that work is on a branch called markdown. For writing, it was just the same as the HTML export except without the boilerplate (<!doctype html>, etc.). For reading, I tried to use Textual's built-in MarkdownViewer component, but I realized it can't actually read the HTML that I was outputting, which made it pretty silly to have around — read and write, but not reading what it can write? Ever seen a program like that? :laughing:

1j01 avatar Sep 19 '23 02:09 1j01

I am very disappointed that markdown doesn't support color

I want a markdown with colors and sixel support !

I found this discussion

https://stackoverflow.com/questions/35465557/how-to-apply-color-on-text-in-markdown

They suggest using unicode emoji for adding a little color

Like 🔴🟠⚫⚪🟣🟢🟡🔵

They also suggest using CSS ?

TODOs:

  • TODO: Important thing to do
  • TODO: Less important thing to do
  • DONE: Breath deeply and improve karma // resets s { text-decoration:none; } //strike-through em { font-style: normal; font-weight: bold; } //italic emphasis

// colors s { color: green } em { color: blue }

I don't understand how that would work as I don't understand CSS

Maybe they can be hidden in a collapsible section and still work somehow ?

collapsed section

TODOs:

  • TODO: Important thing to do
  • TODO: Less important thing to do
  • DONE: Breath deeply and improve karma // resets s { text-decoration:none; } //strike-through em { font-style: normal; font-weight: bold; } //italic emphasis

// colors s { color: green } em { color: blue }

shodanx2 avatar Sep 19 '23 05:09 shodanx2