-
Notifications
You must be signed in to change notification settings - Fork 9
GitHub Markdown Reference
dMLTquant edited this page Sep 7, 2021
·
4 revisions
References
- This is a quick, non-exclusive GitHub Markdown syntax guide. More details can be found in the original GitHub Docs : Writing on GitHub
To add a comment inside of the markdown file, that will not be rendered in the final HTML, use the following syntax:
[//]: # (This is a comment.)
When the link starts with a /
, it is relative to the root of the repository (regardless of whether the markdown file is nested in subdirectories).
[read me](/README.md)
The final link structure will be https://github.com/{user}/{repo}/blob/{branch}/{path}/{to}/{file}/{file}
[index](/path/to/file/README.md)
To add a dropdown the <details><summary>
syntax is needed. Although it works with only <details>
it is common practice to use <summary>
to provide a title.
<details><summary>This is the title</summary>
Markdown or <HTML> content
</details>