Last active
April 8, 2019 11:06
-
-
Save jainxy/49f61e79d48686aa58e77b8bc4a4ccfc to your computer and use it in GitHub Desktop.
Markdown - Quick Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> Markdown => Simple Markup language | |
-> Colab's MD => Rendered via marked.js and similar to those in Jupyter and Github's version | |
-> Difference: Supports Latex equations(MathJax) like Jupyter but not HTML tags | |
-> Syntax Highlighting in the code blocks | |
****************HEADINGS************** | |
# This is equivalent to an <h1> tag | |
##### This is equivalent to an <h5> tag | |
_A text in italics_ ; __A text in bold__ ; ~~strike-through text~~ | |
` | |
Code segment | |
` | |
>Single indentation | |
>>Multiple indentation | |
1. 1st item of ordered list | |
8. 2nd item of the ordered list | |
Non-list text | |
12. A new list item | |
* 1st item of unordered list | |
- 2nd item of the unordered list | |
Simple/Naked URL: www.yahoo.com | |
Linked URL: [Yahoo](www.yahoo.com) | |
Inline Image link: ![Yahoo logo](https://i.kinja-img.com/gawker-media/image/upload/s--L6iEaMpg--/c_scale,f_auto,fl_progressive,q_80,w_800/18z6kfsmghumxpg.png) | |
Referenced Link: [Linked Text][Reference-ID] | |
## LaTeX equations | |
Inline: \$y = 0.1 x\$ => $y = 0.1 x$ | |
Block: \$\$y = 0.1 x\$\$ => $$y = 0.1x$$ | |
## Tables: | |
\| For separation between columns ; \-\-\- OR \_\_\_ OR \*\*\* | |
First column name | Second column name | |
--- | *** | |
Row 1, Col 1 | Row 1, Col 2 | |
Row 2, Col 1 | Row 2, Col 2 | |
=========================================================================================== | |
-> To open copy of any github hosted notebook with colab, in playground mode by putting badge - | |
The markdown for the above badge is the following: | |
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb) | |
The HTML equivalent is: | |
<a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb"> | |
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> | |
</a> | |
Remember to replace the notebook URL in this template with the notebook you want to link to. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment