为字符串部分内容添加样式:实现星号包裹文本加粗与换行分割功能
Got it, here's a straightforward guide to formatting content with Markdown, covering all the rules you need:
# Headings
Use number signs (#) at the start of a line. The number of #s maps to the heading level—1 for the largest top-level heading, up to 6 for the smallest subheading.
Example:
# Main Heading (Level 1) ## Subheading (Level 2) ### Sub-subheading (Level 3)
- List Items
Start each item with a dash (-). Nest lists by indenting nested items with spaces or tabs.
Example:
- First primary list item - Second primary list item - Nested list item 1 - Nested list item 2
* Emphasized Text
Wrap text with asterisks (*) to highlight it. Use one pair for italic styling, two pairs for bold.
Example:
This sentence has *italicized text* and **bolded text**.
Code/Commands
Surround code snippets or terminal commands with backticks (`). For multi-line code blocks, use three backticks on lines before and after the code—you can even add a language identifier for syntax highlighting.
Example:
def calculate_sum(a, b): return a + b
> Quoted Text
Prepend lines with a greater-than sign (>) to format them as quotes. Add extra > signs for nested quotes.
Example:
> This is a basic block quote. > > This is a nested quote inside the first one.
Links
Put the display text in square brackets ([]), followed immediately by the target URL in parentheses (()). You can add an optional tooltip title by placing it in quotes inside the parentheses.
Example:
[Check out this resource](https://example.com "Optional hover title")
Similar to links, but start with an exclamation mark (!). The square brackets contain alt text (for accessibility), and the parentheses hold the image URL. An optional title works here too.
Example:

内容的提问来源于stack exchange,提问作者McKrus

