×
Post thumbnail

How to write in proper way in markdown editor like jupyter nootbook?.

Introduction

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. It is widely used for formatting readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor.

Basic Elements

Headers

Headers are created using the # symbol. The number of # symbols denotes the level of the header.

# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6

Emphasis

Emphasis can be added using * or _ for italics, and ** or __ for bold.

*italic* or _italic_
**bold** or __bold__
***bold and italic*** or ___bold and italic___
Lists

There are two types of lists in Markdown: ordered and unordered.

Unordered List

- Item 1
- Item 2
  - Subitem 1
  - Subitem 2

Ordered List

1. Item 1
2. Item 2
   1. Subitem 1
   2. Subitem 2
Links

Links can be created using square brackets [] for the link text and parentheses () for the URL.

[OpenAI](https://www.openai.com)
Images

Images are similar to links, but they start with an exclamation mark !.

![Alt text](https://www.example.com/image.jpg)
Code

Inline Code

Here is some `inline code`.

Code block

Example - Python Code

```python
def hello_world():
    print("Hello, world!")

Example - Python code with label


### Rendered Output
```python
def hello_world():
    print("Hello, world!")

This method ensures that the code is properly indented and highlighted according to the specified programming language.


Blockquotes

Blockquotes are created using the > symbol.

> This is a blockquote.

Horizontal Rule

A horizontal rule can be created using three or more dashes ---, asterisks ***, or underscores ___.

---
Intermediate Elements

Tables

Tables can be created using pipes | and dashes - to separate the headers and rows.

| Header 1 | Header 2 |
|----------|----------|
| Row 1    | Data     |
| Row 2    | Data     |

Task Lists

Task lists are created using - [ ] for unchecked items and - [x] for checked items.

- [ ] Task 1
- [x] Task 2

Inline HTML

You can use inline HTML for elements not supported by Markdown.

<strong>This is bold text using HTML</strong>
Advanced Elements

Footnotes

Footnotes can be created using [^1] to denote the footnote and [^1]: to define it.

Here is a footnote reference[^1].

[^1]: Here is the footnote.

Definition Lists

Definition lists are a way to group terms and descriptions.

Term
: Definition

Strikethrough

Strikethrough text can be created using ~~.

~~This text is struck through.~~

Emoji 🥸

You can add emojis using :emoji_name: syntax.

I :heart: Markdown.

Syntax Highlighting

Many Markdown parsers support syntax highlighting in code blocks.

```python
def hello_world():
    print("Hello, world!")

 

Sample yaml : Just look what is this written here ?😮   that is readme.md .


### GitHub Flavored Markdown (GFM)
GFM adds some additional features like task lists, tables, and strikethrough.

## Conclusion
Markdown is for formatting text in a simple and readable way. 
By mastering these elements, you can create well-structured and visually appealing 
documents, readme files, and more 📃📃.

---

Make sure to visit again 🥸🐈

 

And that's it. Now Go ahead and practice a little more and you are good to go 🚗.

Also, make sure to share this among your colleges 🔗. 

• • •

Latest Opinions

No Opinion so far...

End.

No internet connection

Trying to reconnect...

Loading...