For now, comments are rendered in the CLI and termUI as pure text. It would be neat to have markdown instead.
While it's easy to find a renderer that output HTML, finding one that render as text or even better text formatted with terminal escape sequence is more tricky.
Need some investigation.
Michael Muré (MichaelMure)
added label
enhancement
Michael Muré (MichaelMure)
added label
RFC
Deleted user (ghost) commented
You can combine these two libraries to get what you want:
Looks like there are 2 Go implementations of CommonMark. I couldn’t find anything in Go to convert Markdown to ANSI codes, but I did find this Node library. Alternatively, since Markdown tries to be human-readable, it could be output as-is on terminals. Support could eventually be added to style bold/italics as they’re supposed to be styled while fading out the */_ delimiters. Similar things could be done for inline code (fade out the `) and code blocks (fade out the ``` and syntax-highlight the code based on the language tag).
andyl (andyl) commented
We would also like Markdown comments.
For extra credit: it would be nice to have a markdown 'templating' way to dynamically render meta-data variables (like $issue_id, $issue_labels, $issue_title, $issue_status).
It's in the termui-markdown branch, but not bolted in the termui yet.
Michael Muré (MichaelMure) commented
With #150, we now have markdown rendering in the webUI. Thanks @sandhose !
Michael Muré (MichaelMure) commented
@ProgramFan I currently writing a Markdown renderer for the terminal. This renderer use the util/text that you rewrote to fix my broken code. Ideally, this renderer would be integrated upstream to the blackfriday project, but this require to re-license your code as well. Would you agree to re license it to the MIT license ?