slint/internal/core
Ashley 710f0c1968
Styled Text: add a macro and functions for parsing markdown (#10060)
* Add markdown macro and parse/escape functions

* Markdown stuff

* Implement escape markdown, handle trailing literal sections

* add StyledText Type and Value

* Implement more things

* [autofix.ci] apply automated fixes

* Rename MarkdownText to StyledText

* Add comments and solve warnings

* Apply automated fixes

* Fill out styled text type

* Change rendertext trait to use enum

* Add allow missing docs to stuff

* Fix testing backend thing

* Move test

* Don't use std:: for certain types

* Fix api/node

* [autofix.ci] apply automated fixes

* Rename to StyledTextItem

* Ignore styledtext in cpp for now

* Remove whitespace change

* Add tests, cpp generator changes

* Add markdown interpolation tests

* Add more tests, some fixes

* Implement some StyledText things

* Fix sharedparley imports

* Manually implement StyledText cpp type

* [autofix.ci] apply automated fixes

* Fix escape and parse markdown functions

* [autofix.ci] apply automated fixes

* Add ignore pyi, documentation for cpp styled text

* Apply some suggestions

* [autofix.ci] apply automated fixes

* Add cpp functions for styled text

* [autofix.ci] apply automated fixes

* Add documentation

* Fix api exports

* class -> struct

* Gate exports behind shared-parley

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-01 22:58:56 +13:00
..
api Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
graphics Docs: fix wrong link 2025-11-28 11:12:31 +01:00
items Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
model Rust adapter model: don't panic over broken model returning None from row_data 2025-08-22 13:27:35 +02:00
properties core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
software_renderer parley: Fix memory leak 2025-11-21 19:05:39 +01:00
textlayout Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
window Update popup.rs 2025-06-21 08:00:10 +02:00
accessibility.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
animations.rs Add assertions for clocks monotonicity (#9514) 2025-09-24 18:20:48 +02:00
api.rs Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
callbacks.rs core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
Cargo.toml Update parley and fontique (#10148) 2025-11-25 14:31:29 +01:00
component_factory.rs ComponentHandle: don't rely on the Inner to be a VRc<ItemTreeVTable> 2025-07-04 10:07:22 +02:00
context.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
date_time.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
future.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
graphics.rs Add support for CSS conic-gradient 'from <angle>' syntax (#9830) 2025-11-13 16:05:16 +01:00
input.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
item_focus.rs Janitor: Always use `#![no_std] for runtime lib 2025-01-27 19:22:00 +01:00
item_rendering.rs Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
item_tree.rs Better debug for the ItemRc 2025-11-24 11:47:07 +01:00
items.rs Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
layout.rs Move reordering of dialog buttons to the organize step 2025-11-21 14:45:55 +01:00
lengths.rs Safe Area 2025-10-24 12:24:45 +02:00
lib.rs Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
menus.rs core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
model.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
partial_renderer.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
platform.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
properties.rs core: fix edition 2024 warnings with slint_debug_property enabled 2025-11-14 14:10:15 +01:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
renderer.rs core: Switch to edition 2024 and just reformat 2025-11-13 15:59:32 +01:00
rtti.rs Add StyledText type (#10122) 2025-11-22 03:06:50 +13:00
sharedvector.rs core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
slice.rs Lay out grids at runtime rather than at compile time 2025-11-21 14:45:55 +01:00
software_renderer.rs Styled Text: add a macro and functions for parsing markdown (#10060) 2025-12-01 22:58:56 +13:00
string.rs core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
tests.rs Upgrade cbindgen and use unsafe(no_mangle) attributes (#8539) 2025-05-26 11:21:33 +02:00
textlayout.rs feature/fontique: switch femtovg to parley (#9466) 2025-09-26 02:48:48 +12:00
timers.rs Timer: Don't panic if starting timers while drop'ing thread_locals 2025-07-11 12:24:44 +02:00
translations.rs core: Fix edition 2024 warnings 2025-11-13 15:59:32 +01:00
unsafe_single_threaded.rs MCU: fix timer not starting if started before first call to update_timers_and_animations 2025-09-08 16:27:12 +02:00
window.rs Core: replace the use of WindowAdapterInternal::as_any with trait inheritance 2025-11-17 10:31:08 +01:00

Slint Runtime Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.