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? #25

Closed
Layarion opened this issue Mar 29, 2020 · 1 comment
Closed

Markdown support? #25

Layarion opened this issue Mar 29, 2020 · 1 comment
Assignees

Comments

@Layarion
Copy link

I'm new to programming, dunno if there are good tools for this out there but most things I'm finding has all this HTML stuff that I don't want to learn or fuss with.

Instead of .Yellow(), can I just use markdown instead?

@Athari Athari self-assigned this Jul 13, 2020
@Athari Athari added the type:support Support label Jul 13, 2020
@Athari
Copy link
Owner

Athari commented Jul 13, 2020

@Layarion
Standard Windows console doesn't support formatting which Markdown provides, like font variations, underlines etc. And I believe no console on any OS supports links and such. So while Markdown can be kinda supported on *nix to produce escape codes, it won't be cross-platform even within *nix world as terminal formatting capabilities and escape codes vary.

Markdown is primarily designed to produce HTML; HTML is primarily designed to not be restricted by native console formatting. So just like with any other complex text formatting (be it HTML, DOCX, TEX or anything else), it isn't fit for console as it's technically impossible to produce the output that this formatting expects withing the restrictions of the terminal. "Previewing" of complex formatting within console is possible, but using it as the main method of output within your app would be frustrating, wasteful and slow.

P.S. It's impossible to avoid learning HTML in the modern world.

@Athari Athari added the resolved:done Done label Jul 13, 2020
@Athari Athari closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants