SCIX-819 fix(abstract): prevent truncation of math-heavy abstracts#780
Merged
thostetler merged 9 commits intoadsabs:masterfrom Jan 28, 2026
Merged
SCIX-819 fix(abstract): prevent truncation of math-heavy abstracts#780thostetler merged 9 commits intoadsabs:masterfrom
thostetler merged 9 commits intoadsabs:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #780 +/- ##
========================================
+ Coverage 61.0% 61.1% +0.1%
========================================
Files 302 304 +2
Lines 35244 35318 +74
Branches 1528 1533 +5
========================================
+ Hits 21494 21563 +69
- Misses 13714 13719 +5
Partials 36 36
🚀 New features to boost your workflow:
|
d48558c to
03ec5a2
Compare
shinyichen
approved these changes
Jan 27, 2026
…iters Prevents browser HTML parser from interpreting < and > characters inside LaTeX math notation as HTML tags, which caused abstract truncation on papers with complex math.
Component pre-processes math to escape HTML characters and wraps MathJax rendering in an error boundary. Falls back to plain text display if rendering fails.
Replaces direct MathJax usage with SafeAbstract component that handles HTML escaping and error fallbacks.
Applies same safe rendering to search result abstract previews.
…bstract Verifies the fix works for the specific abstract that caused the original truncation bug.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Abstracts containing LaTeX math notation like$10<z_\mathrm{phot}<12$ were being
truncated because the browser HTML parser interpreted < and > inside math
delimiters as HTML tags, corrupting the DOM.