whistyun / Markdown.Avalonia

render markdown with Avalonia UI
MIT License
301 stars 24 forks source link

How do I specify my own style? #162

Closed DrDryg closed 3 weeks ago

DrDryg commented 3 weeks ago

Ive been trying to style my Markdown but keeps failing. Ive seen that there are a few standard styles that can be used and those do work. I also seen the example where I can manually style in my axaml file. I do have some issues with that since I don't know which properties to set, what their names are.

I figured I could copy one of the standard styles and modify it to my needs. (I want a few to select from.) But that does not seem to work. With basically the same content it silently just ignores it if I set MarkdownStyle to that class. What is going on? What am I missing? What is the intended way one should change the style?

DrDryg commented 3 weeks ago

I don't know what was going on. Eventually I got it working. Basically copying a default style file and replacing its content from an example where just a few settings were changed. Then I could expand on that.