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

ansi color support for terminal cli #503

Open
laoshaw opened this issue Jan 9, 2023 · 3 comments
Open

ansi color support for terminal cli #503

laoshaw opened this issue Jan 9, 2023 · 3 comments

Comments

@laoshaw
Copy link

laoshaw commented Jan 9, 2023

this converts to html like golang's chroma,which is based off pygmentize,can this package support colors in terminal programs too?

@srawlins
Copy link
Member

srawlins commented Jan 9, 2023

Can you explain what feature would you like? What markdown text would result in what HTML text?

Note that we stick pretty tightly to CommonMark specification, which I believe does not support and ANSI color syntax.

@laoshaw
Copy link
Author

laoshaw commented Jan 9, 2023

would like to convert markdown(commonmark is perfectly fine) to ansi-color output inside a terminal, e.g. dartless my.md can render markdown file with color for me to read at command line. dartless is a less command alternative written in dart, something like bat in rust, that I want to write. Thanks.

@srawlins
Copy link
Member

srawlins commented Jan 9, 2023

I see. Sorry we don't support anything like this. We intend to support a public, stable, syntax tree for Markdown nodes. Then you could, for example, render that tree as ANSI codes. #369

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