Feat/answer link transformation - #288
Merged
Merged
Conversation
Registration questions are free text, and the useful thing people put in
one is an address — their repo, their portfolio, the paper they want to
work from. Every reader of those answers had to select the text and copy
it by hand, on their own profile, on an organizer's view of one person,
and on the page listing what the whole cohort said.
Answers now print through one component that splits the text into the
runs that are addresses and the runs that are not, and renders the first
as anchors. It produces segments rather than HTML, so nothing here goes
near `{@html}` and an answer cannot carry markup onto the page; only
`http`/`https` is ever recognised, so a `javascript:` string is never a
candidate for an href in the first place. The link text is the address as
typed, which is what stops an answer displaying one host while pointing
at another.
Not routed through the markdown pipeline on purpose: nobody told
participants their answer is markdown, and running it as such would
reformat answers that were never meant as markup.
sabinem
force-pushed
the
feat/answer-link-transformation
branch
from
September 1, 2026 19:59
cd7666b to
077081e
Compare
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.
A participant pastes their GitHub URL into a registration answer, and now anyone reading that answer can click it.
Before, they couldn't. Registration questions of the free-text kind are where people put an address — their repo, their portfolio, the paper they'd like to build on — and the answer was printed as flat text everywhere it appeared. An organizer going through fifty sign-ups had to select each URL and copy it into the address bar, one at a time. So did a participant reading a teammate's shared answers.
Answers now render through a single component. Text stays text; anything that is an http:// or https:// address becomes a link that opens in a new tab.
Details:
Deliberately left out: