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

markdown support ? #6

Open
shodanx2 opened this issue Sep 13, 2023 · 2 comments
Open

markdown support ? #6

shodanx2 opened this issue Sep 13, 2023 · 2 comments

Comments

@shodanx2
Copy link

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

@1j01
Copy link
Owner

1j01 commented Sep 19, 2023

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? 😆

@shodanx2
Copy link
Author

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 ?

<style> r { color: Red } o { color: Orange } g { color: Green } </style>

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 <style> r { color: Red } o { color: Orange } g { color: Green } </style>

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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants