mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-08 13:54:54 +00:00
I want to color my console text? #355
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Layarion on GitHub (Mar 30, 2020).
I'm using a .net core 3.1 Console App, and I just want to color keywords in my source string from another layer, and have the presentation layer parse the markdown to display colored words.
it's just for normal console text, not html or anything. I'm currently working on my own implementation but would rather not if I don't have to. can I do that with this? I seen that was a .ToHTML piece of code in the readme, is there a like, .ToConsole or .ToValueKeyPairList or something?
@xoofx commented on GitHub (Mar 30, 2020):
There is no built-in like this, you need to develop your own renderer.
@Layarion commented on GitHub (Mar 30, 2020):
If I wanted to pull in a .ToDictionary(string, markdown/color) (no idea if this is best route) using MarkDig, would it be difficult for someone new to programming?
@xoofx commented on GitHub (Apr 4, 2020):
It is quite some work, Powershell has done a similar work here https://github.com/PowerShell/PowerShell/tree/master/src/Microsoft.PowerShell.MarkdownRender that you could base your work on.