diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 20:22:09 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 20:22:09 +0100 |
| commit | 5a8dbc6347b3541e84fe669b22c17ad3b715e258 (patch) | |
| tree | b148c450939688caaaeb4adac6f2faa1eaffe649 /samples/test.md | |
| download | qwe-editor-5a8dbc6347b3541e84fe669b22c17ad3b715e258.tar.gz | |
Engage!
Diffstat (limited to 'samples/test.md')
| -rw-r--r-- | samples/test.md | 209 |
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 + +``` + +--- + +## 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! ✨ |
