Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Changed

- new markdown rendering lib. Made in compose.

### Added

- popup when leaving the edit of a note without saving

## [26.01]

### Changed
Expand Down Expand Up @@ -38,8 +46,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed

- optimization for big repo
- use fts in libsql
- use a padger (only load notes visibles)
- use fts in libsql
- use a padger (only load notes visibles)

### Added

Expand Down
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ dependencies {
implementation(libs.reimagined.navigation)

// Markdown
implementation(libs.compose.markdown)
implementation(libs.compose.markdown.core)
implementation(libs.compose.markdown.renderer)
implementation(libs.compose.markdown.android)

// unit test
testImplementation(kotlin("test"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.unit.dp
import dev.jeziellago.compose.markdowntext.MarkdownText
import com.mikepenz.markdown.m3.Markdown
import io.github.wiiznokes.gitnote.ui.viewmodel.edit.MarkDownVM

@Composable
Expand All @@ -46,11 +46,10 @@ fun MarkDownContent(
.fillMaxSize()
.verticalScroll(rememberScrollState())
) {
MarkdownText(
Markdown(
modifier = Modifier
.padding(15.dp),
markdown = textContent.text,
isTextSelectable = true,
content = textContent.text,
)
}
} else {
Expand Down
6 changes: 4 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ compose-bom = "2026.05.00"
room = "2.8.4"
sqlite = "3.49.0"
paging = "3.5.0"
compose-markdown = "0.5.8"
compose-markdown = "0.40.2"
# todo: remove this dep and use the standard one
reimagined-navigation = "1.5.0"

Expand Down Expand Up @@ -50,7 +50,9 @@ room-paging = { group = "androidx.room", name = "room-paging", version.ref = "ro


# Markdown
compose-markdown = { group = "com.github.jeziellago", name = "compose-markdown", version.ref = "compose-markdown" }
compose-markdown-core = { group = "com.mikepenz", name = "multiplatform-markdown-renderer", version.ref = "compose-markdown" }
compose-markdown-renderer = { group = "com.mikepenz", name = "multiplatform-markdown-renderer-m3", version.ref = "compose-markdown" }
compose-markdown-android = { group = "com.mikepenz", name = "multiplatform-markdown-renderer-android", version.ref = "compose-markdown" }

# 3-party
reimagined-navigation = { group = "dev.olshevski.navigation", name = "reimagined", version.ref = "reimagined-navigation" }
Expand Down