php markdown extra - nolboo/wiki-syntax GitHub Wiki

원본: PHP Markdown Extra

PHP Markdown Extra

Markdown ExtraλŠ” 순수 λ§ˆν¬λ‹€μš΄ λ¬Έλ²•μ—μ„œ μ œκ³΅ν•˜μ§€ μ•ŠλŠ” λͺ‡ κ°€μ§€ κΈ°λŠ₯을 μ œκ³΅ν•˜λŠ” PHP λ§ˆν¬λ‹€μš΄ ν™•μž₯이닀. 이 λ¬Έμ„œλ₯Ό 읽기 전에 λ§ˆν¬λ‹€μš΄ 문법에 이미 μΉœμˆ™ν•΄μ•Ό ν•œλ‹€.

Inline HTML

λ§ˆν¬λ‹€μš΄μ—μ„  ν…μŠ€νŠΈ 쀑간에 HTML을 μž…λ ₯ν•  수 μžˆμœΌλ‚˜, λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈμ—μ„  μ‹¬κ°ν•œ μ œν•œμ„ κ°€μ§€κ³  μžˆλ‹€. λ§ˆν¬λ‹€μš΄ 문법 λ¬Έμ„œμ—μ„œ:

λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈ - 예. <div>, <table>, <pre>, <p> λ“± - λŠ” μ£Όλ³€ μ½˜ν…μΈ μ™€ 빈 μ€„λ‘œ κ΅¬λΆ„ν•˜κ³ (ν•œ μΉΈμ”© 띄어주고) λΈ”λŸ­μ˜ μ‹œμž‘κ³Ό 끝 νƒœκ·ΈλŠ” νƒ­μ΄λ‚˜ 곡백으둜 λ“€μ—¬μ“°λ©΄ μ•ˆλœλ‹€.

이 μ œν•œμ€ PHP Markdown Extraμ—μ„œ ν•΄μ œλ˜κ³  λ‹€μŒμ˜ 덜 μ œν•œμ μΈ 두 κ°€μ§€λ‘œ λŒ€μΉ˜λœλ‹€:

  1. λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈμ˜ μ‹œμž‘ νƒœκ·Έ μ„Έ 개 μ΄μƒμ˜ μ—¬λ°±μœΌλ‘œ λ“€μ—¬ μ“°μ§€ 말아야 ν•œλ‹€. κ·Έ μ΄μƒμœΌλ‘œ λ“€μ—¬μ“΄ νƒœκ·ΈλŠ” ν‘œμ€€ λ§ˆν¬λ‹€μš΄ κ·œμΉ™μ— 따라 μ½”λ“œλΈ”λŸ­μœΌλ‘œ 닀루어진닀.

  2. λͺ©λ‘ μ•ˆμ—μ„œμ˜ λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈλŠ” λͺ©λ‘ ν•­λͺ©μ΄ λ“€μ—¬μ“°κΈ° 된 같은 크기의 μ—¬λ°±μœΌλ‘œ λ“€μ—¬ μ“°μ—¬μ•Ό ν•œλ‹€.(좔가적인 λ“€μ—¬μ“°κΈ°λŠ” 첫 μ‹œμž‘ νƒœκ·Έκ°€ λ„ˆλ¬΄ 많이 λ“€μ—¬ μ“°μ§€ μ•ŠλŠ” ν•œ μ½”λ“œλΈ”λŸ­μ΄ λœλ‹€. - 첫 번째 κ·œμΉ™μ„ 보라)

Markdown Inside HTML Blocks

λΈ”λŸ­λ ˆλ²¨ νƒœκ·Έ μ•ˆμ—μ„œ λ§ˆν¬λ‹€μš΄ ν˜•μ‹μ˜ ν…μŠ€νŠΈλ₯Ό 넣을 수 μžˆλ‹€. markdown 속성에 1 값을 쀌으둜 써 - markdown="1" μ€€λ‹€ - λ‹€μŒμ€:

<div markdown="1">
This is *true* markdown text.
</div>

λ‹€μŒμœΌλ‘œ 바뀐닀:

<div>

<p>This is <em>true</em> markdown text.</p>

</div>

PHP Markdown ExtraλŠ” markdown 속성을 넣은 λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈμ— λ”°λ₯Έ μ •ν™•ν•œ ν¬λ§€νŒ…μ„ μ œκ³΅ν•  μ •λ„λ‘œ λ˜‘λ˜‘ν•˜λ‹€. 예λ₯Ό λ“€μ–΄ <p>νƒœκ·Έμ— markdown 속성을 μ μš©ν•˜λ©΄, 슀팬레벨 μ—˜λ¦¬λ¨ΌνŠΈλ§Œμ„ λ§Œλ“€μ–΄λ‚Έλ‹€. - λͺ©λ‘, λΈ”λŸ­μΈμš©, μ½”λ“œλΈ”λŸ­μ€ ν—ˆμš©ν•˜μ§€ μ•ŠλŠ”λ‹€.

κ·ΈλŸ¬λ‚˜, λͺ‡ κ°€μ§€ μ• λ§€λͺ¨ν˜Έν•œ κ²½μš°κ°€ μžˆλ‹€. 예λ₯Ό λ“€λ©΄:

<table>
<tr>
<td markdown="1">This is *true* markdown text.</td>
</tr>
</table>

ν…Œμ΄λΈ” 셀은 슀팬과 λΈ”λŸ­ μ—˜λ¦¬λ¨ΌνŠΈλ₯Ό λͺ¨λ‘ 포함할 수 μžˆλ‹€. μœ„μ˜ μ˜ˆμ—μ„  PHP Markdown Extra에선 슀팬 레벨 κ·œμΉ™λ§Œμ„ μ μš©ν•œλ‹€. λΈ”λŸ­μ΄ 되길 μ›ν•˜λ©΄, markdown="block"을 λŒ€μ‹  μž…λ ₯ν•œλ‹€.

Special Attributes

속성 λΈ”λŸ­μ„ μ΄μš©ν•˜μ—¬ id와 클래슀 속성을 μ„€μ •ν•  수 μžˆλ‹€. 예둜, μ€„μ˜ λμ—μ„œ 헀더 λ‹€μŒμ— μ€‘κ΄„ν˜Έμ•ˆ ν•΄μ‰¬λ‘œ μ‹œμž‘ν•˜λŠ” μ›ν•˜λŠ” idλ₯Ό λ‹€μŒκ³Ό μž…λ ₯ν•œλ‹€:

Header 1            {#header1}
========

## Header 2 ##      {#header2}

그런 후에 λ™μΌν•œ λ¬Έμ„œμ˜ λ‹€λ₯Έ λΆ€λΆ„μ—μ„œ λ‹€μŒκ³Ό 같이 링크λ₯Ό λ§Œλ“€ 수 μžˆλ‹€:

[Link back to header 1](#header1)

클래슀 이름을 λ„£μœΌλ €λ©΄, λ‹€μŒκ³Ό 같이 ν•˜λ‚˜μ˜ 점을 μ‚¬μš©ν•œλ‹€:

## The Site ##    {.main}

같은 νŠΉμ • 속성 λΈ”λŸ­μ„ μΆ”κ°€ν•˜μ—¬ id와 μ—¬λŸ¬ 클래슀 이름을 κ²°ν•©ν•  수 μžˆλ‹€.

## The Site ##    {.main .shine #the-site}

이 경우, νŠΉμ • 속성 λΈ”λŸ­μ€ λ‹€μŒκ³Ό ν•¨κ»˜ μ‚¬μš©λ  수 μžˆλ‹€.

  • headers,
  • fenced code blocks,
  • links, and
  • images.

이미지와 링크에선 νŠΉμ • 속성 λΈ”λŸ­μ„ μ£Όμ†Œ κ΄„ν˜Έ λ°”λ‘œ λ‹€μŒμ— λ„£λŠ”λ‹€.

[link](url){#id .class}  
![img](url){#id .class}

λ˜λŠ” μ°Έμ‘° μŠ€νƒ€μΌμ˜ 링크와 이미지λ₯Ό μ‚¬μš©ν•  κ²½μš°μ—”, λ‹€μŒκ³Ό 같이 μ°Έμ‘° 라인 끝에 λ„£λŠ”λ‹€:

[link][linkref] or [linkref]  
![img][linkref]

[linkref]: url "optional title" {#id .class}

Fenced Code Blocks

μšΈνƒ€λ¦¬ μ½”λ“œλΈ”λŸ­μ€ λ§ˆν¬λ‹€μš΄μ˜ μ½”λ“œλΈ”λŸ­κ³Ό μœ μ‚¬ν•˜λ‚˜, μ½”λ“œλΈ”λŸ­μ„ κ΅¬λΆ„ν•˜κΈ° μœ„ν•΄ λ“€μ—¬ μ“°μ§€ μ•Šκ³  μ‹œμž‘κ³Ό 끝 μšΈνƒ€λ¦¬ 라인을 λ„£λŠ”λ‹€. μ½”λ“œλΈ”λŸ­μ€ 3 μƒˆ μ΄μƒμ˜ λ¬Όκ²°ν‘œ ~ 문자둜 μ‹œμž‘ν•˜κ³ , 같은 수의 λ¬Όκ²°ν‘œ ~둜 λλ‚œλ‹€. 예둜:

This is a paragraph introducing:

~~~~~~~~~~~~~~~~~~~~~
a one-line code block
~~~~~~~~~~~~~~~~~~~~~

λ¬Όκ²°ν‘œ λŒ€μ‹ μ— ``` 문자λ₯Ό μ‚¬μš©ν•  μˆ˜λ„ μžˆλ‹€:

``````````````````
another code block
``````````````````

듀여쓰기와 λ‹€λ₯΄κ²Œ, μšΈνƒ€λ¦¬ μ½”λ“œ λΈ”λŸ­μ€ λΉˆμ€„λ‘œ μ‹œμž‘ν•˜κ³  끝낼 수 μžˆλ‹€.

~~~

blank line before
blank line after

~~~

λ“€μ—¬μ“΄ μ½”λ“œλΈ”λŸ­μ€ λͺ©λ‘ λ“€μ—¬μ“°κΈ°κ°€ μš°μ„ ν•˜κΈ° λ•Œλ¬Έμ— λͺ©λ‘ λ‹€μŒμ— λ°”λ‘œ μ‚¬μš©λ  수 μ—†λ‹€; μšΈνƒ€λ¦¬ μ½”λ“œλΈ”λŸ­μ€ 그런 μ œν•œμ΄ μ—†λ‹€:

1.  List item

    Not an indented code block, but a second paragraph
    in the list item

~~~~
This is a code block, fenced-style
~~~~

μšΈνƒ€λ¦¬ μ½”λ“œλΈ”λŸ­μ€ νŽΈμ§‘κΈ°μ—μ„œ μ½”λ“œλ₯Ό λΆ™μ—¬ 넣을 ν•„μš”κ°€ μžˆμ„ λ•Œ ν…μŠ€νŠΈ λΈ”λŸ­μ˜ λ“€μ—¬μ“°κΈ°λ₯Ό μ¦κ°€μ‹œν‚€μ§€ μ•ŠκΈ° λ•Œλ¬Έμ— 이상적이닀.

λ“œλΈ”λŸ­μ— μ μš©ν•  클래슀 이름을 νŠΉμ •ν•  수 μžˆλ‹€. 이것은 언어에 λ”°λ₯Έ μŠ€νƒ€μΌμ„ 달리 μ μš©ν•  λ•Œ μœ μš©ν•œλ‹€. ν˜Ήμ€ μ‚¬μš©ν•œ 문법에 문법 κ°•μ‘°λ₯Ό μ§€μ •ν•  λ•Œλ„ μœ μš©ν•˜λ‹€.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .html
<p>paragraph <b>emphasis</b>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

클래슀 이름은 첫 μšΈνƒ€λ¦¬μ˜ λ§ˆμ§€λ§‰μ— λ‘”λ‹€. 점이 μ‹œμž‘ν•  수 μžˆμœΌλ‚˜ ν•„μˆ˜λŠ” μ•„λ‹ˆλ‹€. νŠΉμ • 속성 λΈ”λŸ­μ„ μ‚¬μš©ν•  μˆ˜λ„ μžˆλ‹€:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.html #example-1}
<p>paragraph <b>emphasis</b>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

더 μžμ„Έν•œ 것은 configurationλ₯Ό μ°Έμ‘°ν•œλ‹€.

Tables

PHP Markdown ExtraλŠ” κ°„λ‹¨ν•œ ν‘œλ₯Ό μœ„ν•œ 고유 문법이 μžˆλ‹€. "κ°„λ‹¨ν•œ" ν‘œλŠ” λ‹€μŒκ³Ό κ°™λ‹€:

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

첫번째 쀄은 ν–‰ 제λͺ©μ΄κ³ ; λ‘λ²ˆμ§Έ 쀄은 제λͺ©κ³Ό λ‚΄μš© μ‚¬μ΄μ˜ ꡬ뢄쀄이닀; λ’€λ”°λ₯΄λŠ” 쀄은 ν…Œμ΄λΈ”μ˜ 열이닀. 행은 νŒŒμ΄ν”„(|) 문자둜 λ‚˜λ‰œλ‹€. HTML둜 λ³€ν™˜λœ κ²°κ³ΌλŠ” λ‹€μŒκ³Ό κ°™λ‹€:

<table>
<thead>
<tr>
  <th>First Header</th>
  <th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Content Cell</td>
  <td>Content Cell</td>
</tr>
<tr>
  <td>Content Cell</td>
  <td>Content Cell</td>
</tr>
</tbody>
</table>

μ›ν•œλ‹€λ©΄, ν…Œμ΄λΈ” 각 쀄에 머리와 꼬리 νŒŒμ΄ν”„λ₯Ό μΆ”κ°€ν•  수 μžˆλ‹€. λ‹€μŒμ€ μœ„μ™€ 같은 κ²°κ³Όλ₯Ό 쀄 것이닀:

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

주의: 각 쀄에 적어도 ν•˜λ‚˜μ˜ νŒŒμ΄ν”„κ°€ ν•„μš”ν•˜λ‹€. 즉, ν•˜λ‚˜μ˜ ν–‰λ§Œμ„ κ°€μ§„ ν‘œλ₯Ό λ§Œλ“€λ €λ©΄ 각 쀄에 λ¨Έλ¦¬λ‚˜ 꼬리 νŒŒμ΄ν”„ λ˜λŠ” λ‘˜λ‹€λ₯Ό μΆ”κ°€ν•΄μ•Ό ν•œλ‹€.

ꡬ뢄선에 μ½œλ‘ μ„ μΆ”κ°€ν•΄μ„œ 각 ν–‰μ˜ 정렬을 μ§€μ •ν•  수 μžˆλ‹€. κ΅¬λΆ„μ„ μ˜ μ™Όμͺ½μ— μ½œλ‘ μ€ μ™Όμͺ½ 정렬될 것이며; 였λ₯Έμͺ½μ˜ μ½œλ‘ μ€ 였λ₯Έμͺ½ 정렬이 될 것이닀; μ–‘μͺ½ λͺ¨λ‘μ˜ μ½œλ‘ μ€ 쀑앙 μ •λ ¬λœλ‹€.

| Item      | Value |
| --------- | -----:|
| Computer  | $1600 |
| Phone     |   $12 |
| Pipe      |    $1 |

κ΄€λ ¨ ν–‰μ˜ 각 셀에 align HTML 속성이 μ μš©λœλ‹€.

λ§ˆν¬λ‹€μš΄ 문법을 μ‚¬μš©ν•˜μ—¬ 각 μ…€μ˜ 컨텐츠에 슀팬레벨 ν˜•μ‹μ„ μ μš©ν•  수 μžˆλ‹€:

| Function name | Description                    |
| ------------- | ------------------------------ |
| `help()`      | Display the help window.       |
| `destroy()`   | **Destroy your computer!**     |

Definition Lists

μ •μ˜ λͺ©λ‘μ€ 사전과 같이 μš©μ–΄(term)와 μš©μ–΄μ˜ μ •μ˜(definition)둜 κ΅¬μ„±λœλ‹€.

PHP Markdown Extraμ—μ„œ κ°„λ‹¨ν•œ μ •μ˜ λͺ©λ‘μ€ ν•œ μ€„μ˜ μš©μ–΄μ™€ μ΄μ–΄μ§€λŠ” 콜둠과 κ·Έ μš©μ–΄μ— λŒ€ν•œ μ •μ˜λ‘œ 이루어진닀.

Apple
:   Pomaceous fruit of plants of the genus Malus in 
    the family Rosaceae.

Orange
:   The fruit of an evergreen tree of the genus Citrus.

μš©μ–΄λŠ” μ•žμ˜ μ •μ˜λ‘œλΆ€ν„° 빈 μ€„λ‘œ κ΅¬λΆ„λ˜μ–΄μ•Ό ν•œλ‹€. μ •μ˜λŠ” μ—¬λŸ¬ 쀄에 걸쳐 μ“Έ 수 있으며, 이 경우 λ°˜λ“œμ‹œ λ“€μ—¬μ“°μ—¬μ•Ό ν•œλ‹€. κ·ΈλŸ¬λ‚˜ λ°˜λ“œμ‹œ κ·Έλ ‡κ²Œ ν•˜μ§€ μ•Šμ•„λ„ μž‘λ™ν•œλ‹€.

Apple
:   Pomaceous fruit of plants of the genus Malus in 
the family Rosaceae.

Orange
:   The fruit of an evergreen tree of the genus Citrus.

μœ„μ˜ μ •μ˜ λͺ©λ‘μ€ 각각 같은 HTML κ²°κ³Όλ₯Ό κ°€μ Έμ˜¨λ‹€:

<dl>
<dt>Apple</dt>
<dd>Pomaceous fruit of plants of the genus Malus in 
the family Rosaceae.</dd>

<dt>Orange</dt>
<dd>The fruit of an evergreen tree of the genus Citrus.</dd>
</dl>

μ •μ˜ ν‘œμ‹œμžλ‘œμ„œμ˜ μ½œλ‘ μ€ μ™Όμͺ½ λ§ˆμ§„μ—μ„œ μ‹œμž‘ν•˜κ³  μ„Έ κ°œκΉŒμ§€ λ“€μ—¬ 쓰일 것이닀. μ •μ˜ ν‘œμ‹œμžλŠ” λ°˜λ“œμ‹œ ν•˜λ‚˜μ˜ μ΄μƒμ˜ μ—¬λ°±κ³Ό ν•˜λ‚˜μ˜ 탭이 이어져야 ν•œλ‹€.

μ •μ˜ λͺ©λ‘μ€ ν•˜λ‚˜μ˜ μš©μ–΄μ— ν•˜λ‚˜ μ΄μƒμ˜ μ •μ˜λ₯Ό κ°€μ§ˆ 수 μžˆλ‹€:

Apple
:   Pomaceous fruit of plants of the genus Malus in 
    the family Rosaceae.
:   An American computer company.

Orange
:   The fruit of an evergreen tree of the genus Citrus.

ν•˜λ‚˜μ˜ μ •μ˜μ— ν•˜λ‚˜ μ΄μƒμ˜ μš©μ–΄λ₯Ό κ²°λΆ€μ‹œν‚¬ μˆ˜λ„ μžˆλ‹€:

Term 1
Term 2
:   Definition a

Term 3
:   Definition b

μ •μ˜ μ•žμ— λΉˆμ€„μ΄ μžˆλ‹€λ©΄ PHP Markdown ExtraλŠ” <p> νƒœκ·Έλ‘œ μ •μ˜λ₯Ό κ°μŒ€ 것이닀. 예λ₯Ό λ“€λ©΄:

Apple

:   Pomaceous fruit of plants of the genus Malus in 
    the family Rosaceae.

Orange

:    The fruit of an evergreen tree of the genus Citrus.

λŠ” λ‹€μŒκ³Ό 같이 λ³€ν™˜λœλ‹€:

<dl>
<dt>Apple</dt>
<dd>
<p>Pomaceous fruit of plants of the genus Malus in 
the family Rosaceae.</p>
</dd>

<dt>Orange</dt>
<dd>
<p>The fruit of an evergreen tree of the genus Citrus.</p>
</dd>
</dl>

일반적인 λͺ©λ‘ ν•­λͺ©κ³Ό 같이, μ •μ˜λŠ” μ—¬λŸ¬ 문단을 포함할 수 있으며, λΈ”λŸ­μΈμš©, λͺ©λ‘, λ‹€λ₯Έ μ •μ˜ λͺ©λ‘κ³Ό 같은 λΈ”λŸ­λ ˆλ²¨ μ—˜λ¦¬λ¨ΌνŠΈλ₯Ό 포함할 수 μžˆλ‹€.

Term 1

:   This is a definition with two paragraphs. Lorem ipsum 
    dolor sit amet, consectetuer adipiscing elit. Aliquam 
    hendrerit mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
    vitae, risus.

:   Second definition for term 1, also wrapped in a paragraph
    because of the blank line preceding it.

Term 2

:   This definition has a code block, a blockquote and a list.

        code block.

    > block quote
    > on two lines.

    1.  first list item
    2.  second list item

Footnotes

각주(footnote)λŠ” μ°Έμ‘° 링크처럼 μž‘λ™ν•œλ‹€. κ°μ£ΌλŠ” 두 κ°€μ§€λ‘œ 이루어진닀: μœ„μ²¨μž μˆ«μžκ°€ 될 λ¬Έμžκ°€ λ“€μ–΄μžˆλŠ” ν‘œμ‹œμž; λ¬Έμ„œμ˜ 끝에 각주의 λͺ©λ‘μœΌλ‘œ μœ„μΉ˜λ˜λŠ” 각주 μ •μ˜. κ°μ£ΌλŠ” λ‹€μŒκ³Ό 같이 보인닀:

That's some text with a footnote.[^1]

[^1]: And that's the footnote.

각주 μ •μ˜λŠ” λ¬Έμ„œμ˜ 아무 κ³³μ—λ‚˜ μžˆμ„ 수 μžˆμœΌλ‚˜, κ°μ£ΌλŠ” ν…μŠ€νŠΈ μ•ˆμ— 링크될 μˆœμ„œλŒ€λ‘œ λ‚˜μ—΄λ˜μ–΄μ•Ό ν•œλ‹€. 같은 각주에 두 개의 링크λ₯Ό λ§Œλ“€ 수 μ—†λ‹€λŠ” 것을 μ£Όμ˜ν•˜λΌ: κ·Έλ ‡κ²Œ ν•œλ‹€λ©΄ λ‘λ²ˆμ§Έ 각주 μ°Έμ‘°λŠ” κ·Έλƒ₯ 일반 ν…μŠ€νŠΈλ‘œ λ‚¨κ²¨μ§ˆ 것이닀.

각 κ°μ£ΌλŠ” λ‹€λ₯Έ 이름을 κ°€μ Έμ•Ό ν•œλ‹€. κ·Έ 이름은 각주 μ •μ˜μ— 각주 μ°Έμ‘°λ₯Ό λ§ν¬ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ  κ²ƒμ΄λ‚˜, 각주의 λ²ˆν˜ΈλΆ€μ—¬μ—λŠ” 영ν–₯이 μ—†λ‹€. 이름은 HTML의 ID 속성에 μœ νš¨ν•œ λͺ¨λ“  문자λ₯Ό μ‚¬μš©ν•  수 μžˆλ‹€.

κ°μ£ΌλŠ” λΈ”λŸ­λ ˆλ²¨ μ—˜λ¦¬λ¨ΌνŠΈλ₯Ό 포함할 수 μžˆλ‹€, 즉, μ—¬λŸ¬ 단락, λͺ©λ‘, λΈ”λŸ­μΈμš© 등을 μ‚¬μš©ν•  수 μžˆλ‹€. λͺ©λ‘ ν•­λͺ©μ—μ„œ 처럼 μž‘λ™ν•œλ‹€: 각주 μ •μ˜μ—μ„œ λ„€ 개의 μ—¬λ°±μœΌλ‘œ 단락을 λ“€μ—¬μ“°κΈ°λ§Œ ν•˜λΌ:

That's some text with a footnote.[^1]

[^1]: And that's the footnote.

    That's the second paragraph.

더 λ‚«κ²Œ μ •λ ¬ν•˜λ €λ©΄, μ•„λž˜μ™€ 같이 각주의 첫 쀄을 λΉ„μš°κ³  첫 번째 단락을 κ·Έ 밑에 λ„£λŠ”λ‹€:

[^1]:
    And that's the footnote.

    That's the second paragraph.

OUTPUT

ν˜„μž¬ λ²„μ „μ—μ„œ 좜λ ₯은 μ‘΄ 그루버 방식을 λ”°λ₯Έλ‹€. μœ„μ˜ 첫번째 예의 κΈ°λ³Έ 좜λ ₯은 λ‹€μŒκ³Ό κ°™λ‹€:

<p>That's some text with a footnote.
   <sup id="fnref-1"><a href="#fn-1" class="footnote-ref">1</a></sup></p>

<div class="footnotes">
<hr />
<ol>

<li id="fn-1">
<p>And that's the footnote.
   <a href="#fnref-1" class="footnote-backref">&#8617;</a></p>
</li>

</ol>
</div>

λ§ν¬μ—μ„œ class="footnote-ref" 와 class="footnote-backref"> 속성은 λ§ν¬ν•˜κ³  μžˆλŠ” μ—˜λ¦¬λ¨ΌνŠΈμ— λŒ€ν•œ 관계λ₯Ό ν‘œν˜„ν•œλ‹€. λ‹€μŒκ³Ό 같은 CSS κ·œμΉ™μœΌλ‘œ μ—˜λ¦¬λ¨ΌνŠΈλ₯Ό μŠ€νƒ€μΌλ§ν•  수 μžˆλ‹€.

a.footnote-ref { ... }
a.footnote-backref { ... }

각주 링크와 λ°±λ§ν¬μ—μ„œ class와 title 속성을 μ»€μŠ€ν„°λ§ˆμ΄μ§•ν•  수 μžˆλ‹€. μžμ„Έν•œ λ‚΄μš©μ€ ν™˜κ²½μ„€μ •μ„ μ°Έμ‘°ν•˜λΌ.

Abbreviations

HTML tag <abbr>에 ν•΄λ‹Ήν•˜λŠ” μ•½μ–΄λ₯Ό μ§€μ›ν•œλ‹€. λ‹€μŒκ³Ό 같이 μ•½μ–΄ μ •μ˜λ₯Ό λ§Œλ“ λ‹€:

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium

그리고 λ¬Έμ„œμ˜ μ–΄λ”˜κ°€μ— ν…μŠ€νŠΈλ₯Ό μ“΄λ‹€:

The HTML specification
is maintained by the W3C.

그러면 ν•΄λ‹Ή 단어듀은 λ‹€μŒκ³Ό 같이 λœλ‹€:

The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.

μ•½μ–΄λŠ” λŒ€μ†Œλ¬Έμžλ₯Ό κ΅¬λ³„ν•˜κ³  μ •μ˜λ  λ•Œ μ—¬λŸ¬ 단어에 κ±ΈμΉ  수 μžˆλ‹€. 빈 μ •μ˜λ„ κ°€μ§ˆ 수 있으며, 이 경우 <abbr> νƒœκ·ΈλŠ” μΆ”κ°€λ˜κ³  title 속성은 μƒλž΅λœλ‹€.

Operation Tigra Genesis is going well.

*[Tigra Genesis]:

μ•½μ–΄ μ •μ˜λŠ” λ¬Έμ„œ μ–΄λ””μ—λ‚˜ μžˆμ„ 수 있으며, μ΅œμ’… λ¬Έμ„œμ—μ„  μ œκ±°λœλ‹€.

Emphasis

ν•œ 단어 μ€‘κ°„μ˜ 밑쀄은 문자 κ·Έλž˜λ„ μ·¨κΈ‰λœλ‹€. 밑쀄 κ°•μ‘°λŠ” 전체 단어에 λŒ€ν•΄μ„œλ§Œ μž‘λ™ν•œλ‹€. λ‹¨μ–΄μ˜ μ–΄λ–€ λΆ€λΆ„λ§Œ κ°•μ‘°ν•  ν•„μš”κ°€ 있으면, λ³„ν‘œ(*)λ₯Ό μ‚¬μš©ν•  수 μžˆλ‹€.

예둜, λ‹€μŒμ€:

Please open the folder "secret_magic_box".

PHP Markdown ExtraλŠ” λ‹¨μ–΄μ˜ 쀑간에 밑쀄이 있기 λ•Œλ¬Έμ— κ°•μ‘°ν•˜μ§€ μ•ŠλŠ”λ‹€. HTML κ²°κ³ΌλŠ” λ‹€μŒκ³Ό κ°™λ‹€:

<p>Please open the folder "secret_magic_box".</p>

밑쀄 κ°•μ‘°λŠ” λ‹€μŒκ³Ό 같이 전체 단어듀을 κ°•μ‘°ν•  λ•Œλ§Œ μž‘λ™ν•œλ‹€:PHP

I like it when you say _you love me_.

Backslash Escapes

PHP Markdown ExtraλŠ” 콜둠(:)κ³Ό νŒŒμ΄ν”„(|)λ₯Ό λ°±μŠ¬λž˜μ‰¬ μ˜ˆμ™Έμ²˜λ¦¬μ— μΆ”κ°€ν•œλ‹€. μ •μ˜ λͺ©λ‘κ³Ό ν‘œλ‘œ λ³€ν™˜λ˜λŠ” 것을 μ˜ˆλ°©ν•œλ‹€.

⚠️ **GitHub.com Fallback** ⚠️