Closed DVaughan closed 1 month ago
I found the problem. It was my code. I should be using Styles
not MarkdownStyle
.
<mdxaml:MarkdownScrollViewer Markdown="{x:Static markdownDemoDan2:MainWindow.JavaCode}">
<mdxaml:MarkdownScrollViewer.Styles>
<StyleInclude Source="/MarkdownStylesCustom.axaml" />
</mdxaml:MarkdownScrollViewer.Styles>
</mdxaml:MarkdownScrollViewer>
Thanks for creating this terrific project.
If I assign a custom MarkdownStyle, identical to MarkdownStyleStandard.axaml, like so:
It breaks the code syntax highlighting, resulting in:
If I comment out custom style, like so:
The highlighting works again: