همکاری قانون اساسی

Markdown_guide
Login

پاراگراف‌ها

پاراگراف‌ها با خطوط خالی از هم جدا می‌شوند.
برای ایجاد شکست خط درون یک پاراگراف، خط را با دو یا چند فاصله پایان دهید.

عنوان‌ها

# عنوان سطح اول                     جایگزین عنوان سطح اول
# عنوان سطح اول #                    =============================

## عنوان سطح دوم                      جایگزین عنوان سطح دوم
## عنوان سطح دوم ##                   -----------------------------

### عنوان سطح سوم                     ### جایگزین عنوان سطح سوم ###
#### عنوان سطح چهارم                   #### جایگزین عنوان سطح چهارم ####
##### عنوان سطح پنجم                   ##### جایگزین عنوان سطح پنجم #####
###### عنوان سطح ششم                   ###### جایگزین عنوان سطح ششم ######

لینک‌ها

  1. [متن نمایش‌داده‌شده](URL)
  2. [متن نمایش‌داده‌شده](URL "عنوان")
  3. [متن نمایش‌داده‌شده](URL 'عنوان')
  4. <URL>
  5. [متن نمایش‌داده‌شده][برچسب]
  6. [متن نمایش‌داده‌شده][]
  7. [متن نمایش‌داده‌شده]
  8. [](URL)

در فرمت‌های ۵، ۶ و ۷ ("لینک‌های ارجاعی")، URL در جای دیگری از سند تعریف می‌شود.
در این موارد، متن نمایش به‌عنوان برچسب لینک استفاده می‌شود. برچسب‌ها به حروف کوچک و بزرگ حساس نیستند.

  • [برچسب]: URL
  • [برچسب]: URL "عنوان"
  • [برچسب]: URL 'عنوان'
  • [برچسب]: URL (عنوان)

اگر URL با "http:", "https:", "ftp:" یا "mailto:" شروع شود، می‌توان آن را با <URL> نوشت (فرمت ۴).

سبک متن

  • *ایتالیک*
  • _ایتالیک_
  • **بولد**
  • __بولد__
  • ***بولد+ایتالیک***
  • ___بولد+ایتالیک___
  • `کد`

استفاده از `کد` نمایش HTML را غیرفعال می‌کند، بنابراین می‌توان مثلاً `<html>` نوشت که خروجی <html> خواهد داشت.

لیست‌ها

   *   آیتم لیست نقطه‌ای
   +   آیتم لیست نقطه‌ای
   -   آیتم لیست نقطه‌ای
   1.  آیتم لیست شماره‌دار
   2)  آیتم لیست شماره‌دار

ایجاد لیست چند سطحی با افزایش فاصله‌ی پیشوند */+/-/1. در سطوح پایین‌تر ممکن است.

   *  آیتم سطح اول
      *  آیتم سطح دوم

نقل قول‌های بلوکی

هر خط از یک پاراگراف را با > شروع کنید تا آن را به‌عنوان نقل‌قول نمایش دهد.

> این یک پاراگراف با تورفتگی است.

> > این یک پاراگراف با تورفتگی مضاعف است.

متن کد/متن خام - بلوک‌های کد

برای متن داخل خط، می‌توانید از `backticks` یا تگ HTML <code> استفاده کنید.

برای بلوک‌های کد:

  1. متن را با یک تب یا حداقل چهار فاصله تورفتگی دهید.
  2. بلوک را با <pre> شروع کرده و با </pre> ببندید.
  3. بلوک را بین **
    اگر زبان مشخصی برای کد باشد، می‌توان نام آن را در همان خط نوشت (مثلاً `
    c ` برای زبان C).

جدول‌ها

| ستون ۱       | ستون ۲       | ستون ۳        |
----------------------------------------------
| ردیف ۱، سلول ۱ | ردیف ۱، سلول ۲ | ردیف ۱، سلول ۳  |
|:چپ‌چین       |:مرکزچین     :| راست‌چین      :|
|              | ← خالی →    |               |
| ردیف ۴، سلول ۱ | ردیف ۴، سلول ۲ | ردیف ۴، سلول ۳  |

خط افقی بعد از ردیف اول باعث می‌شود که آن ردیف به‌عنوان عنوان جدول در نظر گرفته شود.
قرار دادن : در چپ، وسط یا راست باعث چپ‌چین، وسط‌چین یا راست‌چین شدن متن آن ستون می‌شود.

نمودارها

~~~ pikchr
oval "شروع" fit; arrow; box "سلام دنیا!" fit; arrow; oval "پایان" fit
~~~

این خروجی با استفاده از Pikchr تولید شده است:

شروع سلام دنیا! پایان
oval "شروع" fit; arrow; box "سلام دنیا!" fit; arrow; oval "پایان" fit

پاورقی‌ها

پاورقی‌ها در مارک‌داون به شیوه‌ای مشابه لینک‌ها ایجاد می‌شوند و از نماد ^ برای تعریف استفاده می‌کنند.

  1. (^ متن پاورقی )
  2. [ متن مورد ارجاع ](^ توضیح در پاورقی )
  3. [^ برچسب ]
  4. [ متن مورد ارجاع ][^ برچسب ]
  5. [ متن مورد ارجاع ][^]

پاورقی‌هایی که با فرمت ۳، ۴ و ۵ تعریف می‌شوند، متن توضیحی خود را در جای دیگری از سند خواهند داشت.

[^برچسب]: تعریف پاورقی باید از ستون اول شروع شود.
     خط دوم (در صورت وجود) باید حداقل با دو فاصله تورفتگی داشته باشد.

موارد متفرقه

  • برای نوشتن متن از چپ به راست آنرا داخل تگ <div class = 'en'> متن دلخواه </div> قراردهید
  • برای نمایش تصاویر داخل متن از ![متن جایگزین](آدرس تصویر) استفاده کنید.
  • برای قالب‌بندی پیشرفته مانند فرم‌ها از HTML استفاده کنید، توجه داشته باشید که برخی تگ‌ها در برخی زمینه‌ها مجاز نیستند.
  • از <!-- برای قرار دادن نظرات HTML --> استفاده کنید.
  • برای فرار از کاراکترهای خاص (مثلاً [ ( | *) از بک‌اسلش \** (مثلاً **\[ \( \| \*).
  • خطی که فقط شامل ---، *** یا ___ باشد، یک خط افقی نمایش می‌دهد.
  • پاراگراف‌هایی که در <html>...</html> قرار دارند، بدون تغییر عبور داده می‌شوند.

Markdown guide in English

Paragraphs

Paragraphs are divided by blank lines.
End a line with two or more spaces to force a mid-paragraph line break.

Headings

# Top Level Heading                 Alternative Top Level Heading
# Top Level Heading Variant #       =============================

## 2nd Level Heading                Alternative 2nd Level Heading
## 2nd Level Heading Variant ##     -----------------------------

### 3rd Level Heading               ### 3rd Level Heading Variant ###
#### 4th Level Heading              #### 4th Level Heading Variant ####
##### 5th Level Heading             ##### 5th Level Heading Variant #####
###### 6th Level Heading            ###### 6th Level Heading Variant ######

Links

  1. [display text](URL)
  2. [display text](URL "Title")
  3. [display text](URL 'Title')
  4. <URL>
  5. [display text][label]
  6. [display text][]
  7. [display text]
  8. [](URL)

With link formats 5, 6, and 7 ("reference links"), the URL is supplied elsewhere in the document, as shown below. Link formats 6 and 7 reuse the display text as the label. Labels are case-insensitive. The title may be split onto the next line with optional indenting.

  • [label]: URL
  • [label]: URL "Title"
  • [label]: URL 'Title'
  • [label]: URL (Title)

If URL begins with "http:", "https:', "ftp:' or "mailto:", it may optionally be written <URL> (format 4). Other URL formats include:

  • A relative pathname.
  • A pathname starting with "/" in which case the Fossil server URL prefix is prepended
  • A wiki page name, or a wiki page name preceded by "wiki:"
  • An artifact or ticket hash or hash prefix
  • A date and time stamp: "YYYY-MM-DD HH:MM:SS" or a subset that includes at least the day of the month.
  • An interwiki link of the form "Tag:PageName"

In format 8, then the URL becomes the display text. This is useful for hyperlinks that refer to wiki pages and check-in and ticket hashes.

Text Style

  • *italic*
  • _italic_
  • **bold**
  • __bold__
  • ***italic+bold***
  • ___italic+bold___
  • `code`

The `code` construct disables HTML markup, so one can write, for example, `<html>` to yield <html>.

Lists

   *   bullet item
   +   bullet item
   -   bullet item
   1.  numbered item
   2)  numbered item

A two-level list is created by placing additional whitespace before the */+/-/1. of the secondary items.

   *  top-level item
      *  second-level item

Block Quotes

Begin each line of a paragraph with > to block quote that paragraph.

> This paragraph is indented

> > Double-indented paragraph

Literal/Verbatim Text - Code Blocks

For inline text, you can either use `backticks` or the HTML <code> tag.

For blocks of text or code:

  1. Indent the text using a tab character or at least four spaces.
  2. Precede the block with an HTML <pre> tag and follow it with </pre>.
  3. Surround the block by ``` (three or more) or ~~~ either at the left margin or indented no more than three spaces. The first word on that same line (if any) is used in a “language-WORD” CSS style in the HTML rendering of that code block and is intended for use by code syntax highlighters. Thus ```c would mark a block of code in the C programming language. Text to be rendered inside the code block should therefore start on the next line, not be cuddled up with the backticks or tildes. See the "Diagrams" section below for the case where "language-WORD" is "pikchr".

With the standard skins, verbatim text is rendered in a fixed-width font, but that is purely a presentation matter, controlled by the skin’s CSS.

Tables

| Header 1     | Header 2    | Header 3      |
----------------------------------------------
| Row 1 Col 1  | Row 1 Col 2 | Row 1 Col 3   |
|:Left-aligned |:Centered   :| Right-aligned:|
|              | ← Blank   → |               |
| Row 4 Col 1  | Row 4 Col 2 | Row 4 Col 3   |

The first row is a header if followed by a horizontal rule or a blank line.

Placing : at the left, both, or right sides of a cell gives left-aligned, centered, or right-aligned text, respectively. By default, both header and body cells are left-aligned.

The leftmost or rightmost | is required only if the first or last column, respectively, contains at least one blank cell.

Diagrams

~~~ pikchr
oval "Start" fit; arrow; box "Hello, World!" fit; arrow; oval "Done" fit
~~~

Formatted using Pikchr, resulting in:

Start Hello, World! Done
oval "Start" fit; arrow; box "Hello, World!" fit; arrow; oval "Done" fit

Footnotes

Footnotes (or "endnotes") is a Fossil extension of classical Markdown. Fossil's syntax for footnotes is similar to links and is distinguished by the use of character ^ that immediately follows an opening bracket.

  1. (^ footnote's text )
  2. [ fragment of text ](^ a comment about that fragment )
  3. [^ label ]
  4. [ fragment of text ][^ label ]
  5. [ fragment of text ][^]

With formats 1 and 2 ("inline footnotes") text of a footnote is provided in the place where the corresponding numeric mark will be rendered. With formats 3, 4, and 5 ("reference footnotes") text of a footnote is supplied elsewhere in the document, as shown below. Formats 2, 4 and 5 ("span-specific footnotes") mark a specific fragment that is being commented in the footnote. Format 5 reuses a fragment of text as a label. Labels are case-insensitive.

[^label]: Footnote definition must start on the first column.
     The second line (if any) must be indented by two or more spaces.
     Definition continues until indentation drops below that of the 2nd line.

Character ^ is not part of a label, it is part of the syntax. Both a footnote's text and a fragment to which a footnote applies are subject to further interpretation as Markdown sources.

Miscellaneous

  • In-line images are made using ![alt-text](image-URL).
  • Use HTML for advanced formatting such as forms, noting that certain tags are disallowed in some contexts.
  • <!-- HTML-style comments --> are supported.
  • Escape special characters (ex: [ ( | *) using backslash (ex: \[ \( \| \*).
  • A line consisting of ---, ***, or ___ is a horizontal rule. Spaces and extra -/*/_ are allowed.
  • Paragraphs enclosed in <html>...</html> is passed through unchanged.
  • See daringfireball.net for additional information.
  • See this page's Markdown source for more examples.

Special Features For Fossil

  • In hyperlinks, if the URL begins with / then the root of the Fossil repository is prepended. This allows for repository-relative hyperlinks.
  • For documents that begin with a top-level heading (ex: # heading #), the heading is omitted from the body of the document and becomes the document title displayed at the top of the Fossil page.

Interwiki Tag Map

None</blockquote>