Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upattribute with branch blob path #1331
Comments
|
Here's where that would be added: https://github.com/github/markup/blob/master/lib/github/markups.rb#L40 What I don't know is how we can get the information from the GitHub context. Perhaps the code that calls GitHub markup could pass context information via the options parameter. |
at the moment to have image renders reliably with
.adocyou need to do something like:this works great but when you are doing Pull requests and forks your images wont work unless they exist in that
masterbranch.Suggestion is that there would be a
github-locationattribute with the https path for the base of the repo, like:https://github.com/maxandersen/jbang/blob/masteror if in a branchhttps://github.com/maxandersen/jbang/blob/custombranchor in a forkhttps://github.com/ditto/jbang/blob/masterwith that rendering would "just work".