Skip to content

chore: remove legacy components - markdown+lineage+file#3982

Merged
lorenzo-cavazzi merged 10 commits into
mainfrom
lorenzo/remove-legacy-p4
Jan 27, 2026
Merged

chore: remove legacy components - markdown+lineage+file#3982
lorenzo-cavazzi merged 10 commits into
mainfrom
lorenzo/remove-legacy-p4

Conversation

@lorenzo-cavazzi
Copy link
Copy Markdown
Member

The Markdown components where integrating quite some logic to convert/rewrite links that we don't need anymore. I made another very lean component for showing Markdown content that supports everything (except Mermaid?)

/deploy

@RenkuBot
Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ui-3982.dev.renku.ch

@lorenzo-cavazzi lorenzo-cavazzi force-pushed the lorenzo/remove-legacy-p3 branch from 408b1f1 to 81902aa Compare January 22, 2026 11:11
Base automatically changed from lorenzo/remove-legacy-p3 to main January 23, 2026 09:21
@lorenzo-cavazzi lorenzo-cavazzi force-pushed the lorenzo/remove-legacy-p4 branch from 121e55b to d75b050 Compare January 23, 2026 09:29
@lorenzo-cavazzi lorenzo-cavazzi marked this pull request as ready for review January 23, 2026 09:45
@lorenzo-cavazzi lorenzo-cavazzi requested a review from a team as a code owner January 23, 2026 09:45
Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can make mermaid work. Some people may already use it in project documentation so we cannot break it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component name is too long. Why not <Markdown> and <LazyMarkdown>?

@lorenzo-cavazzi
Copy link
Copy Markdown
Member Author

@leafty I think I managed to set up mermaid support properly 19e5bd6

Screenshot_20260123_171216

I removed some now-unused libraries, mostly for rendering markdown on file previews 4ddc5ae

Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code blocks are not processed how they are at the moment, see diff:

Image

@leafty
Copy link
Copy Markdown
Member

leafty commented Jan 27, 2026

Also:
Screenshot 2026-01-27 at 09 38 18

@lorenzo-cavazzi
Copy link
Copy Markdown
Member Author

lorenzo-cavazzi commented Jan 27, 2026

@leafty

You are right, we committed to support Math formulas as well. I don't think we need to support syntax highlighting (I haven't seen any mention in our documentation, we were doing that mainly for previewing files in the file browser) but it' a nice feature for sure so I re-added support for that through highlight.js

image

Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🚀

Before:

build/client/assets/cytoscape.esm-CyJtwmzi.js                   442.46 kB │ gzip: 141.94 kB │ map: 1,865.23 kB
build/client/assets/CodePreview-v5Qo1uoa.js                     942.96 kB │ gzip: 303.97 kB │ map: 2,053.22 kB
build/client/assets/wrappedIndex-D0g9By73.js                  1,812.18 kB │ gzip: 452.20 kB │ map: 6,150.08 kB
build/client/assets/RenkuMarkdown-38qaoafQ.js                 2,201.26 kB │ gzip: 680.44 kB │ map: 6,219.43 kB
build/client/assets/NotebookRender-C3AAvu4X.js                2,947.29 kB │ gzip: 978.41 kB │ map: 4,811.10 kB

After:

build/client/assets/cytoscape.esm-CyJtwmzi.js                   442.46 kB │ gzip: 141.94 kB │ map: 1,865.23 kB
build/client/assets/Markdown-Bp4rLUXm.js                      1,230.84 kB │ gzip: 361.81 kB │ map: 4,591.72 kB
build/client/assets/wrappedIndex-DaPtgRRZ.js                  1,811.46 kB │ gzip: 451.84 kB │ map: 6,148.97 kB

So we got a slimmer markdown renderer now!

@lorenzo-cavazzi lorenzo-cavazzi enabled auto-merge (squash) January 27, 2026 12:57
@lorenzo-cavazzi lorenzo-cavazzi merged commit 9682eb2 into main Jan 27, 2026
28 of 30 checks passed
@lorenzo-cavazzi lorenzo-cavazzi deleted the lorenzo/remove-legacy-p4 branch January 27, 2026 13:15
@RenkuBot
Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants