-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am here again #89
Comments
Besides, could we set the image's width and height ? |
Because of setence element is used in various elements, we should overwrite style various element. If you use <!-- xmlns:md="clr-namespace:Markdown.Avalonia;assembly=Markdown.Avalonia" -->
<!-- xmlns:ctxt="clr-namespace:ColorTextBlock.Avalonia;assembly=ColorTextBlock.Avalonia" -->
<md:MarkdownScrollViewer>
<md:MarkdownScrollViewer.Styles>
<Style Selector="ctxt|CTextBlock">
<Style.Setters>
<Setter Property="Margin" Value="20,5,0,5" />
</Style.Setters>
</Style>
<!-- revert margin for heading -->
<Style Selector="ctxt|CTextBlock.Heading1, ctxt|CTextBlock.Heading2, ctxt|CTextBlock.Heading3, ctxt|CTextBlock.Heading4">
<Style.Setters>
<Setter Property="Margin" Value="0,5" />
</Style.Setters>
</Style>
<!-- revert margin for table -->
<Style Selector="Grid.Table > Border > ctxt|CTextBlock">
<Style.Setters>
<Setter Property="Margin" Value="0,5" />
</Style.Setters>
</Style>
<!-- revert margin for list -->
<Style Selector=".List ctxt|CTextBlock">
<Style.Setters>
<Setter Property="Margin" Value="0,5" />
</Style.Setters>
</Style>
<!-- re-revert margin for list marker -->
<Style Selector="ctxt|CTextBlock.ListMarker">
<Style.Setters>
<Setter Property="Margin" Value="0,5,5,5"/>
</Style.Setters>
</Style>
</md:MarkdownScrollViewer.Styles>
</md:MarkdownScrollViewer> |
I think so too. However, I think that the conversion from css to Avalonia style shoud be done via another library instead of Markdown library. There are no plans to build a css parser now. |
I are not considering adding proprietary styles that apply only within Markdown controls. To avoid style inconsistencies, Markdown.Avalonia refers to the style theme used in the application (e.g. I are considering adding styles for third parties that have their own styles (Aura.UI, FluentAvalonia, Material.Avalonia, etc.), but this approach risks library bloat and I'm wondering if I should really adopt it. |
I am here again just want to ask one question: could we upgrade the ui style ?
first, I want the there has indent before subItems following head tags. just like this:
that must more beautiful if relative css style is supported.
then, a little bit not polite, do we consider Material Design?
The text was updated successfully, but these errors were encountered: