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.
already working on it! will drop a PR soon