You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
View raw non-rendered markdown source with line numbers on file blob show view #297
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:
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.
Reacted by Jesse Donat, Glenn Vanderburg, Vladimir Lagunov, Shaun Luttin, Pierre Ozoux, Ciro Santilli (三西猴) OurBigBook.com sponsor me: cirosantilli.com/sponsor, opinions my own 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script>, Matt McClure, Samir, Yoann Rodière, Alex McLain and 311 more
Reacted by Nicolai Parlog, Sandeep Raju Prabhakar, Levi Thomason, Luke W. Johnston, anatoly techtonik, Nick Reilingh, David Sheldrick, Taylor Edmiston, Colin Bohn, Dmitry Murzin and 14 more
Reacted by Samuel Ainsworth, Mikolaj Konarski, Brett Randall and zohnannor
changed the title [-]Also show non-rendered markdown on blob show[/-][+]View non-rendered markdown source with line numbers on blob show[/+]on Nov 13, 2014
Ah right. The only workaround I found so far was to use the blame view instead, which is obviously not great.
Reacted by Nathan Phillip Brink, Álvaro Cebrián Juan, MH Manuel Haqiqatkhah, kshakir, Albert Albala, Taylor Edmiston, Gaëtan Maisse, z87, Kai Carver, Tyson Williams and 4 more
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).
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.
Reacted by Justin Collum, DiscoStarslayer, Lluís Revilla, TPS, Worms David, Nathan McLean, Ted Behling, asokani, Aaron Williamson, reuben honigwachs and 30 more
@iliastsangaris please use the new +1 button feature instead of comments to avoid notifying people and have an automated upvote count ;-)
Reacted by Andrew Goodricke, Justin Collum, Gabe Kopley, Iliyan Peychev, Mathieu Marques, bart6114, Jan Ivar Beddari, TPS, Nathan McLean, Eric Fode and 23 more
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:
I'm very thankful to GitHub, and the great work they do. When I shake
Reacted by MJ Lacourse, Andrew Fitzgerald, Patrick Kaeding, neldredge, Jonathan Vanasco, Herbert Valerio Riedel, MH Manuel Haqiqatkhah, Keith Henry, Stanislav German-Evtushenko, anatoly techtonik and 18 more
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
changed the title [-]View non-rendered markdown source with line numbers on blob show[/-][+]View raw non-rendered markdown source with line numbers on blob show[/+]on Aug 6, 2018
changed the title [-]View raw non-rendered markdown source with line numbers on blob show[/-][+]View raw non-rendered markdown source with line numbers on file blob show view[/+]on Aug 6, 2018
Note this question is also on StackOverflow here. As someone who works with markdown files a lot, I run into this issue all the time. I'm surprised GitHub is taking so long to address it!
@cirosantilli the GitLab Feedback link in your comment now seems to redirect to a blog post.
On GitLab: http://feedback.gitlab.com/forums/176466-general/suggestions/6563749-also-show-non-rendered-markdown-on-blob-show
Regarding GitLab however, there is a frontend option to "display source" (pull request). When linking to a markdown file with #L suffix in the URL, it defaults to "display source" rather than "display rendered file".
Reacted by David Antliff, Daniel Jewell, tfraking and Joey Freeland
I'm rather surprised not to be able to turn off the preview for READMEs. It never mattered for me... until I wanted to link someone to a line in the readme.
Wouldn't a preview button to view it rendered make sense?
Reacted by Daniel Himmelstein, Dave Stanke, Dario Vianello, pla, tfraking, Simon Alling and Francisco Robles Martín
Reacted by Aleksandrs Ļedovskis, Janosh Riebesell, Tom Janson, Dat Tang, WillyJL, Kenichi Kamiya, Borek Bernard, Piotr Skamruk and Martin Grigorov
Reacted by TPS, Ken Crowell, Tyson Williams, Simon Chan, Levi Lesches, Daniel Himmelstein, Abhishek Goyal, Tom Janson, WillyJL, Yuanchao Zhang and 6 more
Reacted by Kenichi Kamiya, Michael Beer and Martin Grigorov
Activity
[-]Also show non-rendered markdown on blob show[/-][+]View non-rendered markdown source with line numbers on blob show[/+]aspiers commentedon Oct 9, 2015
What do you mean by this exactly? Thanks for any info!
cirosantilli commentedon 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 commentedon 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 commentedon 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 commentedon 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 commentedon 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 commentedon 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 is001e354f8c7be0d8accccd0f5c9644c7910832b8, line number isL48:https://github.com/isaacs/github/blob/001e354f8c7be0d8accccd0f5c9644c7910832b8/README.md#L48github/README.md
Line 48 in 001e354
goswami-rahul commentedon Jul 14, 2018
@pzanitti
github/README.md
Line 48 in 001e354
https://github.com/goswami-rahul/alien-invasion-game/blob/027071489c12df633d362351364b642443a4415f/README.md#L8
I wonder why doesn't it work in my repo?
janisozaur commentedon Aug 6, 2018
It works just fine. It doesn't render here, because this is
isaacs/githuband notgoswami-rahul/alien-invasion-game[-]View non-rendered markdown source with line numbers on blob show[/-][+]View raw non-rendered markdown source with line numbers on blob show[/+][-]View raw non-rendered markdown source with line numbers on blob show[/-][+]View raw non-rendered markdown source with line numbers on file blob show view[/+]XedinUnknown commentedon Sep 2, 2018
Almost 4 years now. Any progress?
binki commentedon 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 .
Truncate long "full names"
dhimmel commentedon Apr 1, 2019
Note this question is also on StackOverflow here. As someone who works with markdown files a lot, I run into this issue all the time. I'm surprised GitHub is taking so long to address it!
@cirosantilli the GitLab Feedback link in your comment now seems to redirect to a blog post.
Regarding GitLab however, there is a frontend option to "display source" (pull request). When linking to a markdown file with
#Lsuffix in the URL, it defaults to "display source" rather than "display rendered file".Frug commentedon Jan 14, 2020
I'm rather surprised not to be able to turn off the preview for READMEs. It never mattered for me... until I wanted to link someone to a line in the readme.
Wouldn't a preview button to view it rendered make sense?
fr0 commentedon Jan 22, 2020
Has anyone submitted this to GitHub support as a request? I'm not sure that they check this repo.
ABHISHEK-G0YAL commentedon Oct 14, 2020
Any progress! I too want my markdown files to not be rendered as they are used by a jekyll project. Github renders my markdown file horribly wrong that I want it to not render it.
https://github.com/ABHISHEK-G0YAL/Hacktoberfest-2020/blob/master/index.md (This is how github renders it)
https://abhishek-g0yal.github.io/Hacktoberfest-2020/ (This is how my jekyll site renders it)
https://raw.githubusercontent.com/ABHISHEK-G0YAL/Hacktoberfest-2020/master/index.md (This is how it is raw)
You can see the links for reference.
christianh814 commentedon Nov 5, 2020
Just adding my +1 ..this would be a cool feature
TPS commentedon Jul 2, 2021
Announced via https://github.blog/changelog/2021-06-30-parameter-to-disable-markdown-rendering/: Append
?plain=1to URL & further add#L[line #] for line highlighting (as is typical).