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
15 changes: 2 additions & 13 deletions mpp-idea/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,8 @@ dependencies {
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")

// Markdown renderer for Jewel-themed markdown rendering
implementation("com.mikepenz:multiplatform-markdown-renderer:0.38.1") {
// Exclude Compose dependencies - IntelliJ provides its own
exclude(group = "org.jetbrains.compose")
exclude(group = "org.jetbrains.compose.runtime")
exclude(group = "org.jetbrains.compose.foundation")
exclude(group = "org.jetbrains.compose.material3")
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.compose.ui")
exclude(group = "org.jetbrains.skiko")
// Exclude kotlinx libraries - IntelliJ provides its own
exclude(group = "org.jetbrains.kotlinx")
}
// Note: We use SimpleJewelMarkdown with intellij-markdown parser instead of mikepenz
// to avoid Compose runtime version mismatch with IntelliJ's bundled Compose

// SQLite JDBC driver for SQLDelight (required at runtime)
implementation("org.xerial:sqlite-jdbc:3.49.1.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import cc.unitmesh.devins.idea.renderer.markdown.JewelMarkdown
import cc.unitmesh.devins.idea.renderer.markdown.jewelMarkdownColor
import cc.unitmesh.devins.idea.renderer.markdown.jewelMarkdownTypography
import cc.unitmesh.devins.idea.renderer.markdown.SimpleJewelMarkdown
import cc.unitmesh.devins.parser.CodeFence
import cc.unitmesh.devins.ui.compose.theme.AutoDevColors
import com.intellij.openapi.Disposable
Expand Down Expand Up @@ -47,12 +45,10 @@ fun IdeaMarkdownRenderer(
modifier = modifier
)
} else {
// Use standard JewelMarkdown for regular content or streaming
JewelMarkdown(
// Use simple Jewel Markdown renderer
SimpleJewelMarkdown(
content = content,
modifier = modifier,
colors = jewelMarkdownColor(),
typography = jewelMarkdownTypography()
modifier = modifier
)
}
}
Expand Down Expand Up @@ -84,11 +80,9 @@ private fun MermaidAwareMarkdownRenderer(
}
"markdown", "md", "" -> {
if (fence.text.isNotBlank()) {
JewelMarkdown(
SimpleJewelMarkdown(
content = fence.text,
modifier = Modifier.fillMaxWidth(),
colors = jewelMarkdownColor(),
typography = jewelMarkdownTypography()
modifier = Modifier.fillMaxWidth()
)
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading