fix: add GFM table support, anchor links, and release tag display to RemoteMD#411
Open
fix: add GFM table support, anchor links, and release tag display to RemoteMD#411
Conversation
* content: remove Pioneer Pass page and clean up EVM references Closes #379 - Remove Pioneer Pass Airdrop Page Closes #376 - Remove EVM references in docs Changes: - Remove entire campaigns/ folder containing pioneer_nfts.mdx - Remove EVM-Compatible dApps bullet from mainnet overview (EVM not yet launched) - Remove "supporting robust EVM primitives" language from control plane description - Remove EVM Chain ID row from devnet chain information table - Note: Auto-generated API docs still contain EVM in schema descriptions (these come from upstream OpenAPI specs and should be updated there) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: remove staking campaigns references from CLAUDE.md --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Replace indefinite localStorage retention with a two-calendar-month expiry that matches the backend's data retention policy. Sessions are pruned on load. Also removes legacy migration code for the old babylon_ai_chat_history key and fixes a missing space in the token-limit error message. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…RemoteMD Fixes #153 - Tables not displaying properly in remote markdown pages Fixes #205 - Release tag not showing when releaseVersions prop is omitted Fixes #192 - Anchor links now work on RemoteMD headings with deep linking Changes: - Add remark-gfm plugin to ReactMarkdown for proper table rendering - Add rehype-raw plugin for inline HTML support (e.g., <br> in tables) - Add responsive table overflow (display:block + overflow-x:auto) - Fix h1 counter bug (was resetting every render, hiding ALL h1s) - Add clickable anchor links (#) on hover for h1-h3 headings - Add scroll-to-hash effect after async markdown loads - Show release tag badge even with single release (was hidden by <= 1 check) - Reset h1 counter when fetching new markdown content Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
and text selection toolbar (#416) * feat(chat): add page actions dropdown and text selection toolbar (#386) Add AI chat integration buttons to doc and API pages: - PageActionsDropdown: MoreVertical menu with Ask Babylon AI, ChatGPT, Claude deep links - TextSelectionToolbar: floating toolbar on text selection with same chat options - Swizzled DocItem/Layout and ApiItem/Layout to inject both components - ChatWidget listens for babylon-ai-query events to auto-open and submit Closes #386 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(css): adjust page actions dropdown positioning for mobile responsiveness Updated the CSS for the page actions dropdown to change its position from static to relative, ensuring the menu appears correctly below the trigger on mobile devices. This change enhances the user experience by improving the dropdown's visibility and accessibility on smaller screens. * fix(TextSelectionToolbar): clear hide timeout on mouseup event Updated the cleanup function in the useEffect hook to clear the hide timeout reference when the mouseup event listener is removed. This change prevents potential memory leaks and ensures that the toolbar behaves correctly when the user interacts with the text selection. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Kevin Liu <337459676@qq.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
🔐 Commit Signature Verification✅ All 8 commit(s) passed verification
Summary
Required key type: Last verified: 2026-03-23 12:00 UTC |
Contributor
|
I tested the anchor links feature, and it still has an issue with inaccurate positioning—there’s an offset from the actual anchor point. |
c137c6f to
9135f22
Compare
web3jenks
added a commit
that referenced
this pull request
Mar 20, 2026
- Fix dependency version conflict: pin remark-gfm@3.0.1, rehype-raw@6.1.1, rehype-sanitize@5.0.1 to versions compatible with react-markdown@8 (npm was hoisting incompatible v4/v7/v6 from Docusaurus, causing 'inTable' crash at runtime) - Fix heading slug generation: add extractText() to recursively extract plain text from React children, preventing [object Object] in IDs - Fix anchor link overlay: replace full-surface position:absolute overlay with inline # icon that doesn't block clicks on heading content - Fix version change anchor continuity: preserve URL hash fragment when switching releases so users land at the same section - Fix stale releasesLoaded state: reset releases state when rawUrl or releaseVersions props change to prevent rendering wrong document - Fix render-time ref mutation: move counter resets into React.useMemo to avoid React anti-pattern under concurrent rendering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Jenks <me@jenksguo.com>
- Fix dependency version conflict: pin remark-gfm@3.0.1, rehype-raw@6.1.1, rehype-sanitize@5.0.1 to versions compatible with react-markdown@8 (npm was hoisting incompatible v4/v7/v6 from Docusaurus, causing 'inTable' crash at runtime) - Fix heading slug generation: add extractText() to recursively extract plain text from React children, preventing [object Object] in IDs - Fix anchor link overlay: replace full-surface position:absolute overlay with inline # icon that doesn't block clicks on heading content - Fix version change anchor continuity: preserve URL hash fragment when switching releases so users land at the same section - Fix stale releasesLoaded state: reset releases state when rawUrl or releaseVersions props change to prevent rendering wrong document - Fix render-time ref mutation: move counter resets into React.useMemo to avoid React anti-pattern under concurrent rendering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b37b3b9 to
5fb7f5c
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Fixes multiple issues with the
RemoteMDcomponent that renders documentation fetched from external GitHub repositories:releaseVersionsprop is omittedChanges
GFM Table Support
remark-gfmplugin to enable GitHub Flavored Markdown table renderingrehype-rawandrehype-sanitizeplugins for safe HTML passthrough.remote-md-table-wrapperwith horizontal scroll for wide tables on mobileAnchor Links on Headings
#on hover)HeadingWithAnchorcomponent generates stable, unique IDs (handles duplicates with-1,-2suffix)#indicator to the left of headingsRelease Tag Display
releasesLoadedstate to prevent flash of empty content while releases loadrawUrlDependency Changes
react-markdown@^8.0.7,rehype-raw@^6.1.1,remark-gfm@^3.0.1rehype-sanitizefrom^6.0.0→^5.0.1(compatibility with rehype-raw)Test plan
#heading-id) scroll to the correct heading after loadreleaseVersionsprop still render correctlynpm run buildto confirm no broken links🤖 Generated with Claude Code