Skip to content

Commit 43f61c1

Browse files
authored
Merge pull request #48 from openai/dev/rz/upstream-merge
Merge from upstream, including updated dependencies
2 parents 4d3846b + 7ce7b12 commit 43f61c1

File tree

67 files changed

+443
-3464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+443
-3464
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: gradle/wrapper-validation-action@v1
14-
- name: set up JDK 17
14+
- name: set up JDK 21
1515
uses: actions/setup-java@v1
1616
with:
17-
java-version: 17
17+
java-version: 21
1818
- uses: actions/cache@v4
1919
with:
2020
path: ~/.gradle/caches

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-java@v1
1818
with:
19-
java-version: 17
19+
java-version: 21
2020
- uses: actions/setup-python@v2
2121
with:
2222
python-version: 3.x
2323
- name: Install dependencies
2424
run: pip install mkdocs-material
2525
- name: Generate docs
26-
run: ./gen_docs.sh
26+
run: ./gen_dokka_docs.sh
2727
- run: mkdocs gh-deploy --force

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ build/
2222
/captures
2323
.externalNativeBuild
2424
.cxx
25+
site/
26+
docs-gen/

CHANGELOG.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
Changelog
22
=========
33

4+
1.0.0-alpha03
5+
-------
6+
7+
This release removes the `printing` and `slideshow` modules to focus on the core Markdown and RichText functionalities. It also adds support for inline base64 images.
8+
9+
### Breaking Changes
10+
- The `printing` and `slideshow` modules have been removed. If you were using them, you will need to find an alternative or use a previous version of the library.
11+
12+
### New Features
13+
- **Inline Base64 Image Rendering**: Markdown images can now be rendered from inline base64-encoded data URIs.
14+
15+
### Updates & Maintenance
16+
- **Dependencies Updated**:
17+
- Compose Multiplatform updated to `1.8.2`.
18+
- Commonmark updated to `0.25.0`.
19+
- Dokka updated to `2.0.0`.
20+
- **Build & CI**:
21+
- Android Gradle Plugin and other dependencies have been updated.
22+
- CI now uses `actions/cache@v4`.
23+
- **Sample App**:
24+
- The Android sample app has been updated to reflect the removal of the `printing` and `slideshow` modules.
25+
- Theme handling in the sample app has been simplified.
26+
427
v0.11.0
528
------
629

@@ -64,24 +87,13 @@ Special thanks @zach-klippenstein @LouisCAD @russhwolf for their reviews and hel
6487
v0.7.0
6588
------
6689

67-
_2021-9-1_
68-
69-
* Improved markdown rendering for editor like environments (#46)
70-
* Finalized MaterialRichText API. (#47)
71-
* Move from BasicRichText/RichText to RichText/MaterialRichText + SetupMaterialRichText
72-
* Update docs accordingly
73-
* Cleaned RichTextString rendering from hacks that were left from earlier compose versions (#48)
74-
75-
v0.6.0
76-
------
77-
7890
_2021-8-6_
7991

8092
* RichText UI no longer depends on Material (#45)
8193
* A new artifact richtext-ui-material is published to easily integrate RichText for apps that use Material design.
8294
* Upgraded compose to 1.0.1 and kotlin to 1.5.21
8395

84-
v0.5.0
96+
v0.6.0
8597
------
8698

8799
_2021-7-29_
@@ -93,7 +105,7 @@ _2021-7-29_
93105
* Artifacts have moved from com.zachklipp.compose-richtext to com.halilibo.compose-richtext.
94106
* Similarly, documentation is also now available at halilibo.com/compose-richtext
95107

96-
v0.3.0
108+
v0.5.0
97109
------
98110

99111
_2021-5-18_
@@ -117,4 +129,4 @@ _2020-11-06_
117129

118130
* Initial release.
119131

120-
Thanks to @halilozercan for implementing Markdown support!
132+
Thanks to @halilozercan for implementing Markdown support!

README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# compose-richtext
1+
# Compose Markdown and Rich Text
22

33
[![Maven Central](https://img.shields.io/maven-central/v/com.halilibo.compose-richtext/richtext-ui.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.halilibo.compose-richtext%22)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
55

66
> **Warning**
77
> compose-richtext library and all its modules are very experimental. The roadmap is unclear at the moment. Thanks for your patience. Fork option is available as always.
88
9-
A collection of Compose libraries for working with rich text formatting and documents.
9+
A collection of Compose libraries for working with Markdown rendering and rich text formatting.
1010

11-
Aside from `printing`, and `slideshow`, all modules are Kotlin Multiplatform Compose Libraries.
12-
13-
This repo is currently very experimental and really just proofs-of-concept: there are no tests and some things
14-
might be broken or very non-performant.
11+
All modules are Compose Multiplatform compatible but lacks iOS support.
1512

1613
----
1714

@@ -21,30 +18,24 @@ might be broken or very non-performant.
2118

2219
```kotlin
2320
@Composable fun App() {
24-
val printController = rememberPrintableController()
25-
26-
Printable(printController) {
27-
RichText(Modifier.background(color = Color.White)) {
28-
Heading(0, "Title")
29-
Text("Summary paragraph.")
21+
RichText(Modifier.background(color = Color.LightGray)) {
22+
Heading(0, "Title")
23+
Text("Summary paragraph.")
3024

31-
HorizontalRule()
25+
HorizontalRule()
3226

33-
BlockQuote {
34-
Text("A wise person once said…")
35-
}
27+
BlockQuote {
28+
Text("A wise person once said…")
3629
}
37-
}
38-
39-
Button(onClick = { printController.print("README") }) {
40-
Text("PRINT ME")
30+
31+
Markdown("**Hello** `World`")
4132
}
4233
}
4334
```
4435

4536
## License
4637
```
47-
Copyright 2022 Halil Ozercan
38+
Copyright 2025 Halil Ozercan
4839
4940
Licensed under the Apache License, Version 2.0 (the "License");
5041
you may not use this file except in compliance with the License.

android-sample/build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("com.android.application")
35
kotlin("android")
@@ -22,16 +24,17 @@ android {
2224
sourceCompatibility = JavaVersion.VERSION_11
2325
targetCompatibility = JavaVersion.VERSION_11
2426
}
25-
kotlinOptions {
26-
jvmTarget = "11"
27+
}
28+
29+
kotlin {
30+
compilerOptions {
31+
jvmTarget = JvmTarget.JVM_11
2732
}
2833
}
2934

3035
dependencies {
31-
implementation(project(":printing"))
3236
implementation(project(":richtext-commonmark"))
3337
implementation(project(":richtext-ui-material3"))
34-
implementation(project(":slideshow"))
3538
implementation(AndroidX.appcompat)
3639
implementation(Compose.activity)
3740
implementation(compose.foundation)

0 commit comments

Comments
 (0)