New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View raw non-rendered markdown source with line numbers on file blob show view #297

Open
cirosantilli opened this Issue Nov 13, 2014 · 11 comments

Comments

Projects
None yet
9 participants
@cirosantilli
Collaborator

cirosantilli commented Nov 13, 2014

Currently, it is not possible to view the highlighted markdown source with line numbers like it is possible for non-markdown files: only the rendered HTML shows:

vs

I want to do this to be able to link to specific lines of the markdown file, like can be done with other file types. Header IDs are somewhat of a workaround, but not enough as you may want to comment any specific line.

It would also enable stuff like: #295, #293 (comment) for markdown.

On GitLab: http://feedback.gitlab.com/forums/176466-general/suggestions/6563749-also-show-non-rendered-markdown-on-blob-show

@cirosantilli cirosantilli changed the title from Also show non-rendered markdown on blob show to View non-rendered markdown source with line numbers on blob show Nov 13, 2014

@aspiers

This comment has been minimized.

aspiers commented Oct 9, 2015

UPDATE: https://github.com/petros replied with template.

What do you mean by this exactly? Thanks for any info!

@cirosantilli

This comment has been minimized.

Collaborator

cirosantilli commented Oct 9, 2015

@aspiers ah, I (cryptically) meant "with the standard ACK reply" :-) I don't even do those updates anymore, they always reply.

@aspiers

This comment has been minimized.

aspiers commented Oct 9, 2015

Ah right. The only workaround I found so far was to use the blame view instead, which is obviously not great.

@SamirBoulil

This comment has been minimized.

SamirBoulil commented Apr 11, 2016

I'm also interested in having a repository settings option to tell github wether I want my markdown files to be rendered or wether I want to display raw markdown files (BLOB).

@NfNitLoop

This comment has been minimized.

NfNitLoop commented Aug 8, 2016

I'd love this feature too! Wanted to link someone to a particular line of a longish README.md, but you either get the rendered Markdown w/o lines, or you can click "raw" and see the file w/o GitHub's nice line formatting.

@cirosantilli

This comment has been minimized.

Collaborator

cirosantilli commented Aug 10, 2016

@iliastsangaris please use the new +1 button feature instead of comments to avoid notifying people and have an automated upvote count ;-)

@pzanitti

This comment has been minimized.

pzanitti commented Feb 14, 2018

I got here because I was wondering how to open an issue from markdown code, so I had to figure out a workaround.

Currently you have to find the .md file, press 'y' to find the blob hash, go to Blame view, find the line numbers, and then manually assemble the reference.

e.g.

Want to reference line 48 of https://github.com/isaacs/github/blob/master/README.md. Master is 001e354f8c7be0d8accccd0f5c9644c7910832b8, line number is L48:

https://github.com/isaacs/github/blob/001e354f8c7be0d8accccd0f5c9644c7910832b8/README.md#L48

I'm very thankful to GitHub, and the great work they do. When I shake

@goswami-rahul

This comment has been minimized.

goswami-rahul commented Jul 14, 2018

@pzanitti

Currently you have to find the .md file, press 'y' to find the blob hash, go to Blame view, find the line numbers, and then manually assemble the reference.
e.g.
Want to reference line 48 of https://github.com/isaacs/github/blob/master/README.md. Master is 001e354, line number is L48:
https://github.com/isaacs/github/blob/001e354f8c7be0d8accccd0f5c9644c7910832b8/README.md#L48

I'm very thankful to GitHub, and the great work they do. When I shake

https://github.com/goswami-rahul/alien-invasion-game/blob/027071489c12df633d362351364b642443a4415f/README.md#L8

I wonder why doesn't it work in my repo?

@janisozaur

This comment has been minimized.

janisozaur commented Aug 6, 2018

I wonder why doesn't it work in my repo?

It works just fine. It doesn't render here, because this is isaacs/github and not goswami-rahul/alien-invasion-game

@cirosantilli cirosantilli changed the title from View non-rendered markdown source with line numbers on blob show to View raw non-rendered markdown source with line numbers on blob show Aug 6, 2018

@cirosantilli cirosantilli changed the title from View raw non-rendered markdown source with line numbers on blob show to View raw non-rendered markdown source with line numbers on file blob show view Aug 6, 2018

@XedinUnknown

This comment has been minimized.

XedinUnknown commented Sep 2, 2018

Almost 4 years now. Any progress?

@binki

This comment has been minimized.

binki commented Sep 2, 2018

@XedinUnknown Please note that this is a repository only for tracking gripes people have with GitHub. The operators of this repository do not have any power to add features to GitHub itself. If you are interested in seeing progress, consider using Contact GitHub to send GitHub itself feedback about the issue. See https://github.com/isaacs/github/blob/master/README.md .

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