Skip to content

fix: handle Textile links with a trailing > and no closing tag#89

Closed
santhreal wants to merge 2 commits into
textile:masterfrom
santhreal:fix/link-trailing-gt-no-closing-tag
Closed

fix: handle Textile links with a trailing > and no closing tag#89
santhreal wants to merge 2 commits into
textile:masterfrom
santhreal:fix/link-trailing-gt-no-closing-tag

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

textile.core.Textile._rightanglebracket hits AttributeError when "link":http://example.com>. This PR fixes the regression with a focused test covering the case.

_rightanglebracket assumed urlLeft always matched a closing HTML tag.
Links like "link":http://example.com> left m as None and raised AttributeError.
Treat a bare trailing '>' like other end punctuation.
@ikirudennis
ikirudennis changed the base branch from master to develop July 20, 2026 23:18
@ikirudennis
ikirudennis changed the base branch from develop to master July 20, 2026 23:19
@ikirudennis

Copy link
Copy Markdown
Member

Hi @santhreal,

Thank you so much for putting this together!

It looks like this issue is already fully resolved in the develop branch. In our recent merge and alignment with upstream php-textile reference behavior, we established that a lone trailing angle bracket > with no preceding tag is dropped completely from both the URL and the final HTML output (rather than being rendered as an escaped >).

Since the crash is fixed and the output is aligned with upstream on develop, I am going to go ahead and close this PR. I really appreciate your support and diligence in helping us squash this bug!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants