Skip to content

Markdown là ngôn ngữ dùng để tạo văn bản. Sau thời gian dùng latex để xây dựng đây là ngôn ngữ văn bản thứ hai cảm thấy phù hợp do đơn giản, linh hoạt và có thể xuất bản dưới dạng web. Bảng dưới đây có gắng tóm tắt các lệnh đó cũng như cách hiển thị để các bạn tiện theo dõi. Tôi có sử dụng tài liệu tại basic syntaxextended syntax.

Basic Syntax

Heading

Heading
# H1 
## H2
### H3
#### H4
##### H5
###### H6

H1

H2

H3

H4

H5
H6

Fonts style

Fonts Style
**bold text**
*italicized text*
> blockquote
~The world is flat.~

bold text

italicized text

blockquote ~The world is flat.~

Danh sách list

1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
  1. First item
  2. Second item
  3. Third item

===

  • First item
  • Second item
  • Third item

Đường link

[Markdown Guide](https://www.markdownguide.org) 
![alt text](https://www.markdownguide.org/assets/images/tux.png)

Bảng biểu

| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
Syntax Description
Header Title
Paragraph Text

Fenced Code Block

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

Footnote

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

bubble_sort.py
def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]
bubble_sort.py
def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items) - 1 - i):
            if items[j] > items[j + 1]:
                items[j], items[j + 1] = items[j + 1], items[j]

pied piper

!!! pied-piper "Pied Piper"

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et
    euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo
    purus auctor massa, nec semper lorem quam in massa.

Pied Piper

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.

chèn file ảnh

<figure markdown="span">
![Image title](https://dummyimage.com/600x400/){ width="300" }
<figcaption>Image caption</figcaption>
</figure>

Image title
Image caption

Bình luận

Categories