From 13a02f743e14f0e006fbd419f932ec039f2ad74e Mon Sep 17 00:00:00 2001 From: Oleg Bask Date: Sat, 30 Mar 2024 17:14:31 -0700 Subject: [PATCH] Wire up GFM Tables extension --- .idea/inspectionProfiles/Project_Default.xml | 1 + gradle/libs.versions.toml | 1 + markdown/core/api/core.api | 23 +++++ .../jetbrains/jewel/markdown/MarkdownBlock.kt | 6 +- .../MarkdownBlockProcessorExtension.kt | 4 +- .../extensions/MarkdownProcessorExtension.kt | 3 +- .../markdown/processing/MarkdownProcessor.kt | 4 +- .../autolink/AutolinkProcessorExtension.kt | 4 +- .../extension/gfm-tables/api/gfm-tables.api | 35 +++++++ .../extension/gfm-tables/build.gradle.kts | 23 +++++ .../tables/GitHubTableBlockRenderer.kt | 97 +++++++++++++++++++ .../tables/GitHubTableProcessorExtension.kt | 12 +++ .../tables/GitHubTableRendererExtension.kt | 14 +++ .../extensions/tables/TableStyling.kt | 13 +++ .../api/int-ui-standalone-styling.api | 7 ++ .../build.gradle.kts | 1 + .../alerts/GitHubTableDefaultStyling.kt | 20 ++++ samples/standalone/build.gradle.kts | 4 +- .../view/markdown/MarkdownPreview.kt | 15 ++- settings.gradle.kts | 1 + 20 files changed, 276 insertions(+), 12 deletions(-) create mode 100644 markdown/extension/gfm-tables/api/gfm-tables.api create mode 100644 markdown/extension/gfm-tables/build.gradle.kts create mode 100644 markdown/extension/gfm-tables/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/tables/GitHubTableBlockRenderer.kt create mode 100644 markdown/extension/gfm-tables/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/tables/GitHubTableProcessorExtension.kt create mode 100644 markdown/extension/gfm-tables/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/tables/GitHubTableRendererExtension.kt create mode 100644 markdown/extension/gfm-tables/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/tables/TableStyling.kt create mode 100644 markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubTableDefaultStyling.kt diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index fd1904ab3..7a9999f19 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,6 +3,7 @@