Releases: 18488292860-coder/docs
Release list
更新
Basic writing and formatting syntax
Create sophisticated formatting for your prose and code on GitHub with simple syntax.
Headings
To create a heading, add one to six # symbols before your heading text. The number of # you use will determine the hierarchy level and typeface size of the heading.
# A first-level heading
## A second-level heading
### A third-level headingWhen you use two or more headings, GitHub automatically generates a table of contents that you can access by clicking the "Outline" menu icon within the file header. Each heading title is listed in the table of contents and you can click a title to navigate to the selected section.
Styling text
You can indicate emphasis with bold, italic, strikethrough, subscript, or superscript text in comment fields and .md files.
| Style | Syntax | Keyboard shortcut | Example | Output | |
|---|---|---|---|---|---|
| Bold | ** ** or __ __ |
Command+B (Mac) or Ctrl+B (Windows/Linux) | **This is bold text** |
This is bold text | |
| Italic | * * or _ _ |
Command+I (Mac) or Ctrl+I (Windows/Linux) | _This text is italicized_ |
This text is italicized | |
| Strikethrough | ~~ ~~ or ~ ~ |
None | ~~This was mistaken text~~ |
||
| Bold and nested italic | ** ** and _ _ |
None | **This text is _extremely_ important** |
This text is extremely important | |
| All bold and italic | *** *** |
None | ***All this text is important*** |
All this text is important | |
| Subscript | <sub> </sub> |
None | This is a <sub>subscript</sub> text |
This is a subscript text | |
| Superscript | <sup> </sup> |
None | This is a <sup>superscript</sup> text |
This is a superscript text | |
| Underline | <ins> </ins> |
None | This is an <ins>underlined</ins> text |
This is an underlined text |
Quoting text
You can quote text with a >.
Text that is not a quote
> Text that is a quoteQuoted text is indented with a vertical line on the left and displayed using gray type.
Note
When viewing a conversation, you can automatically quote text in a comment by highlighting the text, then typing R. You can quote an entire comment by clicking , then Quote reply. For more information about keyboard shortcuts, see Keyboard shortcuts.
Quoting code
You can call out code or a command within a sentence with single backticks. The text within the backticks will not be formatted. You can also press the Command+E (Mac) or Ctrl+E (Windows/Linux) keyboard shortcut to insert the backticks for a code block within a line of Markdown.
Use `git status` to list all new or modified files that haven't yet been committed.To format code or text into its own distinct block, use triple backticks.
Some basic Git commands are:
```
git status
git add
git commit
```For more information, see Creating and highlighting code blocks.
If you are frequently editing code snippets and tables, you may benefit from enabling a fixed-width font in all comment fields on GitHub. For more information, see About writing and formatting on GitHub.
Supported color models
In issues, pull requests, and discussions, you can call out colors within a sentence by using backticks. A supported color model within backticks will display a visualization of the color.
The background color is `#ffffff` for light mode and `#000000` for dark mode.Here are the currently supported color models.
| Color | Syntax | Example | Output |
|---|---|---|---|
| HEX | `#RRGGBB` |
`#0969DA` |
![]() |
| RGB | `rgb(R,G,B)` |
`rgb(9, 105, 218)` |
![]() |
| HSL | `hsl(H,S,L)` |
`hsl(212, 92%, 45%)` |
![]() |
Note
- A supported color model cannot have any leading or trailing spaces within the backticks.
- The visualization of the color is only supported in issues, pull requests, and discussions.
Links
You can create an inline link by wrapping link text in brackets [ ], and then wrapping the URL in parentheses ( ). You can also use the keyboard shortcut Command+K to create a link. When you have text selected, you can paste a URL from your clipboard to automatically create a link from the selection.
You can also create a Markdown hyperlink by highlighting the text and using the keyboard shortcut Command+V. If you'd like to replace the text with the link, use the keyboard shortcut Command+Shift+V.
This site was built using [GitHub Pages](https://pages.github.com/).
Note
GitHub automatically creates links when valid URLs are written in a...









