Οδηγός σύνταξης Markdown

Απαραίτητη σύνταξη για μορφοποίηση εγγράφων

Επισκόπηση

Το Markdown είναι ελαφρύ γλώσσα σήμανσης για προσθήκη μορφοποίησης σε απλό κείμενο. Δημιουργήθηκε από τον John Gruber το 2004, σήμερα μία από τις πιο δημοφιλείς γλώσσες σήμανσης.

Η χρήση Markdown διαφέρει από επεξεργαστή WYSIWYG. Στο Word πατάτε κουμπιά· στο Markdown προσθέτετε σύνταξη στο κείμενο για να δείξετε τι εμφανίζεται διαφορετικά.

Τίτλοι

Για τίτλο προσθέστε # πριν από λέξη ή φράση. Ο αριθμός # αντιστοιχεί στο επίπεδο (π.χ. ### = επίπεδο 3).

Markdown
HTML
Αποτέλεσμα απόδοσης
# Heading level 1
<h1>Heading level 1</h1>

Heading level 1

## Heading level 2
<h2>Heading level 2</h2>

Heading level 2

### Heading level 3
<h3>Heading level 3</h3>

Heading level 3

#### Heading level 4
<h4>Heading level 4</h4>

Heading level 4

##### Heading level 5
<h5>Heading level 5</h5>
Heading level 5
###### Heading level 6
<h6>Heading level 6</h6>
Heading level 6

Παράγραφοι

Για παραγράφους διαχωρίστε γραμμές κειμένου με κενή γραμμή.

Markdown
HTML
Αποτέλεσμα απόδοσης
I really like using Markdown.

It lets me write easily.
<p>I really like using Markdown.</p>
<p>It lets me write easily.</p>

I really like using Markdown.

It lets me write easily.

Αλλαγές γραμμής

Για αλλαγή γραμμής τερματίστε τη γραμμή με δύο ή περισσότερα κενά και πατήστε Enter.

Markdown
HTML
Αποτέλεσμα απόδοσης
This is the first line.
And this is the second line.
<p>This is the first line.<br>
And this is the second line.</p>

This is the first line.
And this is the second line.

Έμφαση

Μπορείτε να προσθέσετε έμφαση με έντονα ή πλάγια.

Έντονα

Έντονα: ** ή __ πριν και μετά τη λέξη ή φράση.

Markdown
HTML
Αποτέλεσμα απόδοσης
I just love **bold text**.
I just love <strong>bold text</strong>.

I just love bold text.

I just love __bold text__.
I just love <strong>bold text</strong>.

I just love bold text.

Πλάγια

Πλάγια: * ή _ πριν και μετά τη λέξη ή φράση.

Markdown
HTML
Αποτέλεσμα απόδοσης
The *cat* meows.
The <em>cat</em> meows.

The cat meows.

The _cat_ meows.
The <em>cat</em> meows.

The cat meows.

Έντονα και πλάγια

Και τα δύο: *** ή ___ πριν και μετά το κείμενο.

Markdown
HTML
Αποτέλεσμα απόδοσης
This text is ***really important***.
This text is <strong><em>really important</em></strong>.

This text is really important.

This text is ___really important___.
This text is <strong><em>really important</em></strong>.

This text is really important.

Παραθέσεις

Παράθεση: προσθέστε > πριν από την παράγραφο.

Markdown
HTML
Αποτέλεσμα απόδοσης
> Dorothy followed her through many of the beautiful rooms in her castle.
<blockquote><p>Dorothy followed her through many of the beautiful rooms in her castle.</p></blockquote>

Dorothy followed her through many of the beautiful rooms in her castle.

Ένθετες παραθέσεις

Οι παραθέσεις μπορούν να ενθεντούν. Προσθέστε >> πριν από την παράγραφο προς ένθεση.

Markdown
Αποτέλεσμα απόδοσης
> Dorothy followed her through many of the beautiful rooms in her castle.
>
>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

Dorothy followed her through many of the beautiful rooms in her castle.

The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

Λίστες

Μπορείτε να δημιουργήσετε αριθμημένες και λίστες με κουκκίδες.

Αριθμημένες λίστες

Αριθμημένη λίστα: αριθμοί με τελεία στην αρχή κάθε γραμμής, ξεκινήστε με 1.

Markdown
HTML
Αποτέλεσμα απόδοσης
1. First item
2. Second item
3. Third item
4. Fourth item
<ol>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
  <li>Fourth item</li>
</ol>
  1. First item
  2. Second item
  3. Third item
  4. Fourth item

Λίστες με κουκκίδες

Λίστα με κουκκίδες: - ή * ή + στην αρχή κάθε γραμμής.

Markdown
HTML
Αποτέλεσμα απόδοσης
- First item
- Second item
- Third item
- Fourth item
<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
  <li>Fourth item</li>
</ul>
  • First item
  • Second item
  • Third item
  • Fourth item

Κώδικας

Για να σημειώσετε κείμενο ως κώδικα, βάλτε το σε backtick `.

Markdown
HTML
Αποτέλεσμα απόδοσης
At the command prompt, type `nano`.
At the command prompt, type <code>nano</code>.

At the command prompt, type nano.

Μπλοκ κώδικα

Μπλοκ κώδικα: εσοχή τουλάχιστον 4 κενά ή tab σε κάθε γραμμή, ή ``` πριν και μετά το μπλοκ.

Markdown
Αποτέλεσμα απόδοσης
```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

Οριζόντιες γραμμές

Οριζόντια γραμμή: *** ή --- ή ___ σε ξεχωριστή γραμμή.

Markdown
HTML
Αποτέλεσμα απόδοσης
***
<hr>

---
<hr>

___
<hr>

Εικόνες

Εικόνα: ! μετά [alt κείμενο](URL εικόνας), προαιρετικά τίτλος σε εισαγωγικά.

Markdown
HTML
Αποτέλεσμα απόδοσης
![The San Juan Mountains](https://mdg.imgix.net/assets/images/san-juan-mountains.jpg "San Juan Mountains")
<img src="https://mdg.imgix.net/assets/images/san-juan-mountains.jpg" alt="The San Juan Mountains" title="San Juan Mountains">
The San Juan Mountains

Ειδικοί χαρακτήρες

Για εμφάνιση χαρακτήρα που χρησιμοποιείται για μορφοποίηση, προσθέστε \ πριν.

Markdown
Αποτέλεσμα απόδοσης
\* Without the backslash, this would be a bullet in an unordered list.

* Without the backslash, this would be a bullet in an unordered list.

Χαρακτήρες για escape

Μπορείτε να χρησιμοποιήσετε backslash για escape:

\backslash
`backtick
*asterisk
_underscore
{ }curly braces
[ ]brackets
( )parentheses
#pound sign
+plus sign
-minus sign (hyphen)
.dot
!exclamation mark
|pipe

Πίνακες

Πίνακας: --- για κεφαλίδες στηλών, | για διαχωρισμό στηλών.

Markdown
Αποτέλεσμα απόδοσης
| Syntax    | Description |
| --------- | ----------- |
| Header    | Title       |
| Paragraph | Text        |
SyntaxDescription
HeaderTitle
ParagraphText

Ευθυγράμμιση

Προσθέστε : αριστερά, δεξιά ή και στις δύο πλευρές του --- στη γραμμή κεφαλίδας για ευθυγράμμιση στηλών.

Markdown
Αποτέλεσμα απόδοσης
| Align Left | Align Center | Align Right |
| :--- | :---: | ---: |
| This | This | This |
| column | column | column |
| will | will | will |
| align | align | align |
| left | center | right |
ΑριστεράΚέντροΔεξιά
ThisThisThis
columncolumncolumn
willwillwill
alignalignalign
leftcenterright