Oficiālā specifikācija

Šis špikeris seko GitHub Flavored Markdown (GFM) — GitHub izmantotajai dialektam — un saglabā saderību ar CommonMark kodolu. Pilnā gramatika ir atrodama oficiālajās specifikācijās:

Virsraksti

Izmanto # zīmes, lai veidotu virsrakstus. Viens # ir lielākais, seši — mazākais.

# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

Teksta formatējums

Treknraksts, slīpraksts, pārsvītrojums un iekļautais kods.

**Bold text** *Italic text* ***Bold and italic*** ~~Strikethrough text~~ `Inline code`

Bold text Italic text Bold and italic Strikethrough text Inline code

Saites

Veido hipersaites ar iekļauto vai atsauces sintaksi.

[OpenAI](https://openai.com) [Link with title](https://example.com "Optional title") <https://automatic-link.com>

Attēli

Ievieto attēlus ar alternatīvo tekstu.

![Alt text](https://placehold.co/600x100/1e1e2e/cdcdff?text=Example+Image) ![Image with title](https://placehold.co/600x60/1e1e2e/cdcdff?text=Image+with+title "A placeholder image")

Alt text

Image with title

Kods

Kā atzīmēt kodu Markdown marķējumā: iekļautais kods ar atpakaļvērstajām zīmēm un koda bloki ar trim atpakaļvērstajām zīmēm.

Here is some `inline code` in a sentence. ```javascript function hello(name) { console.log(`Hello, ${name}!`); } ``` ```python def greet(name): return f"Hello, {name}!" ```

Here is some inline code in a sentence.

function hello(name) {
  console.log(`Hello, ${name}!`);
}
def greet(name):
    return f"Hello, {name}!"

Saraksti

Numurēti, nenumurēti un uzdevumu saraksti.

### Unordered list - Item one - Item two - Nested item - Another nested - Item three ### Ordered list 1. First step 2. Second step 1. Sub-step A 2. Sub-step B 3. Third step ### Task list - [x] Completed task - [ ] Pending task - [ ] Another task
Unordered list
  • Item one
  • Item two
    • Nested item
    • Another nested
  • Item three
Ordered list
  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step
Task list
  • Completed task
  • Pending task
  • Another task

Tabulas

Veido tabulas ar vertikālām līnijām un domuzīmēm.

| Feature | Status | Notes | | --- | --- | --- | | Tables | ✅ | Pipe and dash syntax | | Alignment | ✅ | :--, :--:, --: | | Cell content | ✅ | Text, links, inline code | | Left | Center | Right | | :--- | :---: | ---: | | Left-aligned | Centered | Right-aligned | | 1 | 2 | 3 |
FeatureStatusNotes
Tables✅Pipe and dash syntax
Alignment✅:--, :--:, --:
Cell content✅Text, links, inline code
LeftCenterRight
Left-alignedCenteredRight-aligned
123

Citāti

Citē teksta blokus ar zīmi >.

> This is a blockquote. > It can span multiple lines. > > ## Heading inside a quote > - Lists work too > **Nested quotes:** > > Deeply nested quote > > > Even deeper

This is a blockquote. It can span multiple lines.

Heading inside a quote
  • Lists work too

Nested quotes:

Deeply nested quote

Even deeper

Horizontālās līnijas

Pievieno horizontālo līniju ar trim vai vairāk domuzīmēm, zvaigznītēm vai pasvītrojumiem.

Text above --- *** ___ Text below

Text above




Text below

Pārsvītrojums

Pārsvītro tekstu ar dubultām tildes zīmēm.

Forumos pārsvītrošanai bieži lieto [s]...[/s] (arī [b], [i]) — tas ir BBCode, nevis Markdown. Markdown valodā to pašu efektu raksta šādi: ~~text~~

This is ~~deleted text~~ still visible. ~~Entire paragraph that has been struck through for review purposes.~~ Mix of ~~strikethrough~~ and normal text.

This is deleted text still visible.

Entire paragraph that has been struck through for review purposes.

Mix of strikethrough and normal text.