Skip to content

Studio: Assistant doesnt render correctly html anchor links - #2312

Merged
gavande1 merged 3 commits into
trunkfrom
stu-1166-studio-assistant-doesnt-render-correctly-html-anchor-links
Dec 25, 2025
Merged

Studio: Assistant doesnt render correctly html anchor links#2312
gavande1 merged 3 commits into
trunkfrom
stu-1166-studio-assistant-doesnt-render-correctly-html-anchor-links

Conversation

@gavande1

@gavande1 gavande1 commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

Related issues

Important

I have also updated bot to always generate Markdown links. The details are attached in Linear issue.

Proposed Changes

  • Add rehype-raw package to allow links to be parsed and rendered in Markdown block.

Testing Instructions

  • Checkout this branch
  • Run npm install & npm start
  • Go to assistant tab. Write following prompt and submit

How can I login into the my wp-admin? I can't find the link

  • Make sure it returns links to admin and they are rendered correctly.
Before After
CleanShot 2025-12-24 at 15 34 58 CleanShot 2025-12-24 at 15 34 40

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@gavande1 gavande1 changed the title Studio assistant doesnt render correctly html anchor links Dec 24, 2025
@gavande1 gavande1 self-assigned this Dec 24, 2025
@gavande1
gavande1 requested a review from a team December 24, 2025 10:06
@github-actions

github-actions Bot commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

📊 Performance Test Results

Comparing 80b6d09 vs trunk

site-editor

Metric trunk 80b6d09 Diff Change
load 8863.00 ms 10200.00 ms +1337.00 ms 🔴 15.1%

site-startup

Metric trunk 80b6d09 Diff Change
siteCreation 13269.00 ms 13187.00 ms -82.00 ms 🟢 -0.6%
siteStartup 5975.00 ms 5940.00 ms -35.00 ms 🟢 -0.6%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

@nightnei nightnei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM and works as expected 👍
Screenshot 2025-12-24 at 14 24 25

@gavande1
gavande1 merged commit a07784b into trunk Dec 25, 2025
9 checks passed
@gavande1
gavande1 deleted the stu-1166-studio-assistant-doesnt-render-correctly-html-anchor-links branch December 25, 2025 07:22

@sejas sejas left a comment

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.

I tested it and I confirm the links are rendered as expected and it opens the browser correctly.

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

Labels

None yet

3 participants