-
Notifications
You must be signed in to change notification settings - Fork 798
Add basic styled text documentation #10296
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
base: master
Are you sure you want to change the base?
Conversation
086f6ef to
1ad58db
Compare
| import CodeSnippetMD from "@slint/common-files/src/components/CodeSnippetMD.astro"; | ||
|
|
||
|
|
||
| The `StyledText` type renders text with various styling and interactive properties, such as bolded, underlined and colored sections as well as HTTP links. It is based on a subset of the [commonmark](https://commonmark.org/) spec. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is under types and properties but it looks like the reference documentation for the element (as the quoted text says).
I suggest to either fold this into the styled text element reference docs or cross-link between them and disambiguate that this is about the property type, not the element. A way of disambiguating would be to use the actual property type in this file. But my preference is folding them for now.
|
|
||
| Styled Text supports the following features: | ||
|
|
||
| - Italics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of a plain list, I think it would be better to have a visual table, like here: https://commonmark.org/help/
No description provided.