Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where image captions were not displayed in the UI. It enhances the Milkdown editor by adding a distinct input for image alt text, separating it from the caption. The changes also update the markdown serialization and backend parsing to correctly handle and render both alt text and captions for images. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses the issue of missing image captions on the UI by introducing a dedicated alt text input field within the Milkdown editor, involving updates to CSS, the Milkdown schema, a ProseMirror plugin, and adjustments to markdown parsing and Elixir backend logic. However, a significant security concern has been identified: the use of plain string interpolation for building HTML tags with user-supplied data in Literature.ImageComponent leads to a stored Cross-Site Scripting (XSS) vulnerability. It is recommended to switch to Phoenix HEEx templates or ensure all interpolated values are properly escaped to mitigate this risk.
…nput aside from blur
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #649 +/- ##
==========================================
+ Coverage 79.38% 79.42% +0.04%
==========================================
Files 84 84
Lines 2450 2455 +5
==========================================
+ Hits 1945 1950 +5
Misses 505 505 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
How to test:
Please see ticket https://martide.atlassian.net/browse/WEB-10734 for testing instructions
Note: The image alt input should now appear when you click on the image itself or when you add an image block like below:
