summaryrefslogtreecommitdiff
path: root/samples/test.md
diff options
context:
space:
mode:
Diffstat (limited to 'samples/test.md')
-rw-r--r--samples/test.md209
1 files changed, 209 insertions, 0 deletions
diff --git a/samples/test.md b/samples/test.md
new file mode 100644
index 0000000..24b7e7a
--- /dev/null
+++ b/samples/test.md
@@ -0,0 +1,209 @@
+# Learn Markdown
+
+Markdown is a lightweight markup language for formatting plain text. It’s widely used for README files, documentation, notes, and writing on platforms like GitHub.
+
+---
+
+## 1. Headings
+
+Use `#` characters for headings. More `#` means a smaller heading.
+
+```md
+# Heading 1
+## Heading 2
+### Heading 3
+#### Heading 4
+```
+
+---
+
+## 2. Paragraphs & Line Breaks
+
+Just write text normally.
+
+* Leave a **blank line** between paragraphs.
+* Add two spaces at the end of a line for a manual line break.
+
+---
+
+## 3. Emphasis
+
+```md
+*Italic* or _Italic_
+**Bold** or __Bold__
+***Bold and Italic***
+~~Strikethrough~~
+```
+
+*Italic*
+**Bold**
+***Bold and Italic***
+~~Strikethrough~~
+
+---
+
+## 4. Lists
+
+### Unordered Lists
+
+```md
+- Item
+- Item
+ - Nested item
+* Item
+```
+
+### Ordered Lists
+
+```md
+1. First
+2. Second
+3. Third
+```
+
+---
+
+## 5. Links
+
+```md
+[Link text](https://example.com)
+```
+
+[Example link](https://example.com)
+
+---
+
+## 6. Images
+
+```md
+![Alt text](https://example.com/image.png)
+```
+
+---
+
+## 7. Code
+
+### Inline Code
+
+```md
+Use `inline code` for short snippets.
+```
+
+Use `inline code` for short snippets.
+
+### Code Blocks
+
+````md
+```python
+def hello():
+ print("Hello, Markdown!")
+````
+
+````
+
+```python
+def hello():
+ print("Hello, Markdown!")
+````
+
+---
+
+## 8. Blockquotes
+
+```md
+> This is a blockquote.
+>> Nested blockquote.
+```
+
+> This is a blockquote.
+>
+> > Nested blockquote.
+
+---
+
+## 9. Horizontal Rules
+
+```md
+---
+***
+___
+```
+
+---
+
+## 10. Tables
+
+```md
+| Name | Level | Class |
+|------|-------|-------|
+| Alex | 60 | Mage |
+| Sam | 45 | Rogue |
+```
+
+| Name | Level | Class |
+| ---- | ----- | ----- |
+| Alex | 60 | Mage |
+| Sam | 45 | Rogue |
+
+---
+
+## 11. Task Lists
+
+```md
+- [x] Learn Markdown basics
+- [ ] Write documentation
+- [ ] Become awesome
+```
+
+* [x] Learn Markdown basics
+* [ ] Write documentation
+* [ ] Become awesome
+
+---
+
+## 12. Escaping Characters
+
+Use a backslash (`\`) to escape Markdown characters.
+
+```md
+\*This is not italic\*
+```
+
+*This is not italic*
+
+---
+
+## 13. Common Markdown Extensions (Platform-dependent)
+
+Some platforms (like GitHub) support extra features:
+
+* Syntax highlighting
+* Task lists
+* Tables
+* Strikethrough
+* Emoji `:smile:` 😄
+
+---
+
+## 14. Tips for Learning
+
+* Read Markdown source and rendered output side by side
+* Practice by writing a README.md
+* Use a Markdown preview editor
+
+---
+
+## 15. Minimal Cheat Sheet
+
+```md
+# Heading
+**Bold** *Italic*
+[Link](url)
+`Code`
+- List item
+> Quote
+```
+
+---
+
+Happy writing! ✨