Kryptos-FR / markdig.wpf

A WPF library for xoofx/markdig https://github.com/xoofx/markdig
MIT License
160 stars 52 forks source link

How to styel Markdown Code #51

Closed zewditu closed 2 years ago

zewditu commented 2 years ago

I have an issue theming for code Markdig version : 0.5.0.1 VS version: 2022 preview 3.0; image

It seems that markdig has style for codes image.

However, what target framework controls the style that should be applied? should it be applied to Textblock or something else?

zewditu commented 2 years ago

I got it

zewditu commented 2 years ago

I reopened it, I need to know for code blocks

 Code block   
code block
Kryptos-FR commented 2 years ago

Starting to look like a duplicate of #23, #24 and #30.

Styles can be overridden with the keys mentioned in your screenshot. There you can define text font, color as well as background color and any other style properties already supported by Paragraph.

zewditu commented 2 years ago

Hi @Kryptos-FR nice Paragraph works fine for me. I have one more question how writing code blocks with specific language colorization like csharp?

image

public void MakeDeposit(decimal amount, DateTime date, string note)
{
}

public void MakeWithdrawal(decimal amount, DateTime date, string note)
{
}
Kryptos-FR commented 2 years ago

@zewditu this is currently not supported.

It would require quite a lot of work to have different renderer strategies based on the language including parsing the text that goes inside a code block.

Currently this repository is in maintenance mode as I don't have time to work on new features. Contributions are welcomed.