Monorepo for Tangled tangled.org
753
fork

Configure Feed

Select the types of activity you want to include in your feed.

proposal: markdown: writing a commit hash inside a markdown comment within a repo should create a link #197

open opened by samanthanguyen.me

I want to be able to link to various commits and have them rendered nicely instead of showing a full URL.

proposal change#

Typing a git commit hash should be parsed within the markdown text.

proposal implementation#

Similar to how there is already a markdown extension at appview/pages/markup/extension/atlink.go, we could create another extension like appview/pages/markup/extension/commit_hash.go.

Could use a regular expression to match for commit hash (SHA1 hash), accepting a short version and long version. For every match, call Repository.ResolveRevision(), passing in the current repository context and the possible match. If it resolves, convert to a rendered link formatted inline with <code>. If it doesn't, render the text as normal.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:smd2mvg2dao4rqnnz6qexdov/sh.tangled.repo.issue/3mctiz2octx22