Skip to content

v2.7.3: Fix URL parsing for bracket-wrapped URLs

Latest

Choose a tag to compare

@a-pasquale a-pasquale released this 13 Nov 19:49

Bug Fixes

URL Parsing Improvements

  • Fixed issue where URLs wrapped in square brackets [https://example.com] were not being converted to clickable markdown links
  • Resolved double-processing bug that caused malformed markdown rendering
  • URLs like [https://forms.gle/oSTsvh6cDkjECL2VA] now correctly render as clickable links

Technical Details

  • Implemented two-pass URL processing approach:
    • First pass: converts [URL] to [URL](URL)
    • Second pass: converts bare URLs while avoiding already-processed markdown
  • Fixed regex pattern to prevent URL truncation at closing brackets

This fix ensures LLM responses with bracket-wrapped URLs render correctly in the chatbot interface.