fix: support balanced parentheses in image and link URLs
Fixed a parsing issue where URLs containing parentheses would be incorrectly truncated, breaking image and link rendering. Implements a balanced parentheses parser compliant with CommonMark Supports nested parentheses like (value(nested)) Maintains backward compatibility Efficient O(n) algorithm with clean logic Verified with unit, integration, regression, and edge case tests
Showing
1 changed file
with
77 additions
and
11 deletions
-
Please register or login to post a comment