How do I view the source of Markdown files on Github?

前端 未结 2 1763
[愿得一人]
[愿得一人] 2020-12-15 17:10

Github helpfully renders Markdown (.md) files to HTML when viewing on github.com (for example, this README.md).

When viewing any other source file, it i

相关标签:
2条回答
  • 2020-12-15 17:21

    Use the "Raw" button. For instance, if you were looking at README.md there is a Raw button in the Navigation. This can be simple URL change (from blob to raw), but in this case becomes a separate link.

    Edit: There is no "pretty" view for the Markdown source. There's the converted HTML view, the Raw view without the UI, and the Blame view. Only the Blame view provides you with the ability to link to a specific line within the source.

    Edit 2: The other option is to use Anchors within the README.md. If you take the Installation title for example, you can directly link within the content of the Markdown file. Assuming you don't have anything hidden within the Markdown itself, this is closer still to solving your original question.

    0 讨论(0)
  • 2020-12-15 17:41

    Using the "Blame" button, you are able to see the source of the Markdown (for example, like this).

    Unfortunately, "Blame" comes with extra UI elements which make the source more cluttered.

    0 讨论(0)
提交回复
热议问题