Markdig.SyntaxHighlighting icon indicating copy to clipboard operation
Markdig.SyntaxHighlighting copied to clipboard

Unsupported languages seem to break the layout

Open Dids opened this issue 7 years ago • 1 comments

Before realizing that there is only support for a very limited amount of languages, I created simple markdown to visualize which languages worked and how well they worked.

Syntax Highlighting

let message = 'Hi'
console.log(message)
std::string message = "Hi";
std::cout << message << endl;
var message = "Hi";
Console.WriteLine(message);
#!/bin/bash
VAR=$(echo 'Hi')
echo ${VAR}
NSString *message = @"Hi";
NSLog(message);

Now here's what this looks like with Markdig and Markdig.SyntaxHighlighting:

Markdig SyntaxHighlighting

As you can see, both objectivec and bash break formatting entirely, and I did expect them to just be shown as regular code blocks, but without syntax highlighting.

Additionally, where should I look for to potentially add support for more languages?

Dids avatar Feb 08 '18 08:02 Dids

ColorCode is the component that actually does the syntax highlighting, I just built the glue to stick everything together.

RichardSlater avatar May 15 '18 12:05 RichardSlater