Commit Graph

11 Commits

Author SHA1 Message Date
Jakub Senohrabek
766beca004 [jewel] Backport Jewel 0.28 APIs to 243
GitOrigin-RevId: 65f34914870df00a6d3c50ff7614cdf0f9748703
2025-04-29 12:20:16 +00:00
Sebastiano Poggi
eea1240eca [JEWEL-748] Define delimited inlines extension API, implement strikethrough
This includes a bunch of changes to the Markdown inline APIs to better align with CommonMark and our actual needs; a clean-up of the previous half-hearted attempt at supporting custom inline nodes (it did not and could never have worked in the way it was implemented), and some misc tweaks and cleanup.

closes https://github.com/JetBrains/intellij-community/pull/2915

(cherry picked from commit 70ef3e792dc4f64fd4d2afc6aa02f8c190203443)


(cherry picked from commit 606d5a2004d373e961229af09b367f0ccf2ceae4)

IJ-MR-155570

GitOrigin-RevId: 793138291f4f0c131949c08d0bfa037f843335d3
2025-03-12 13:07:26 +00:00
Ivan Morgillo
84032509aa [jewel] JEWEL-735 Implement Markdown tables support (GFM extension)
Reference https://github.com/JetBrains/jewel/pull/735

closes https://github.com/JetBrains/intellij-community/pull/2913

(cherry picked from commit ca172d6be3642466b530822f6518eee394f1b81b)


(cherry picked from commit ce7f847ef5a9583f585121950784ca6020a51661)

IJ-MR-155570

GitOrigin-RevId: 63a995b4a7b58b4e6b3b8bc56b9b139bf17aaaaf
2025-03-12 13:07:26 +00:00
Sebastiano Poggi
573e4e6c1e Improve and update Markdown readme (#482)
GitOrigin-RevId: 36e8dc757adf8cd9806d938a77ef94cb24a21529
2024-07-26 06:19:22 -07:00
Sebastiano Poggi
a765f32120 Rename palette entry grey -> gray (#486)
The name was changed in 242 to reflect the fact that everything else is
named in en-US, and for consistency with the Int UI specs. This change
aligns us to that, leaving a deprecated grey accessor in
ThemeColorPalette for backwards compat. The lookup function also accepts
both spellings for the time being.

This also bumps the theme generator to target IJP 242.

Note that some of these changes will not be ported to earlier releases —
only the ThemeColorPalette property name changes and lookup behaviour —
since in 233 and 241 the keys are still named in en-GB in the theme json
GitOrigin-RevId: 4b7fd824383276f4b1bcb6f634817827f6a8e1ac
2024-07-24 10:47:11 +02:00
Ivan Morgillo
605a09ae38 Refresh Jewel Markdown README (#438)
* add a markdown string to README

* add a disclaimer comment to MarkdownPreview.kt

* refresh Markdown README

* fix a typo in README.md

* address PR comments

Signed-off-by: Ivan Morgillo <imorgillo@gmail.com>

---------

Signed-off-by: Ivan Morgillo <imorgillo@gmail.com>
GitOrigin-RevId: d90c92771574610b7a4d5d1e9f34731b767a3756
2024-07-09 12:15:42 +02:00
Sebastiano Poggi
caee40fe5f Reorganize and expand the Markdown modules
* Split out theming from Core (except for jewel.ui deps)
 * Implement both bridge and standalone Int UI themes
 * Reorganize modules to make adding extensions easier
 * Add Markdown rendering to IDE plugin sample

> [!NOTE]
> The leaf modules are named `*Styling` because Gradle doesn't allow you
> to have modules with the same name and that depend on each other. It
> says it's a circular dependency, even if it's not (the modules have
> different paths). Since the Standalone Markdown module depends on the
> Int UI Standalone, and the Bridge Markdown depends on the Bridge
> theme, this would break the build. We are, however, going to try and
> figure this out so that we can remove the suffix.

GitOrigin-RevId: b09149173a5adfd2215ca9d49db7df0af705d845
2024-03-26 18:11:56 +00:00
Oleg Bask
2faf8af874 Update commonmark-java to 0.22.0 (#324)
...and bump commonmark spec to 0.31.2.

One test it ignored due to a complex case of parsing emphasis:
https://spec.commonmark.org/0.31.2/#emphasis-and-strong-emphasis

Co-authored-by: Oleg Baskakov <baskakov@google.com>
GitOrigin-RevId: 910a1c735353dc3ab86f6cd1e7e501d8e56700d4
2024-03-19 13:46:17 -07:00
Sebastiano Poggi
a032cdfb1b Fix Markdown extension-gfm-alerts dependencies, document it
GitOrigin-RevId: c333803157ca87ed260c8819ae43ba2bcfbb21a2
2024-02-15 11:32:16 +01:00
Sebastiano Poggi
e21d868d81 Improve Markdown readme sample
GitOrigin-RevId: 468181fc55b83b508f1a292df8d14dc9b81d0977
2024-02-14 15:37:18 +01:00
Sebastiano Poggi
c2a9ba4e67 Add Markdown renderer code and sample (#294)
Add markdown renderer code and sample

Co-authored-by: Fabrizio Scarponi <36624359+fscarponi@users.noreply.github.com>
GitOrigin-RevId: 0d25c19bab80dde7bfe7904a36c9896ed31853de
2024-02-12 12:35:41 +01:00