基于连续行vals字段字符匹配更新idx字段并优化代码
Hey there! Let's break down these Markdown formatting rules into an easy-to-follow cheat sheet, complete with practical examples for each case:
Headings
Create hierarchical headings using number signs (#). The number of #s corresponds to the heading level—1 is the largest, 6 the smallest:
# Main Heading (Level 1) ## Subheading (Level 2) ### Sub-subheading (Level 3)
List Items
For unordered lists, start each item with a dash (-). Nest lists by indenting nested items with 2 spaces:
- First top-level item - Second top-level item - Nested list item - Another nested item
Text Emphasis
Wrap text in asterisks to add emphasis. Use single asterisks for italicized text, double asterisks for bold text:
*This text will appear italicized* **This text will appear bold**
Code or Commands
Surround code snippets, terminal commands, or inline code with backticks (`) to format them as monospaced text. For multi-line code blocks, use three backticks:
# Inline code example Run `python script.py` to execute your program. # Multi-line code block example ```javascript function calculateSum(a, b) { return a + b; }
## Quoted Text Use a greater-than sign (`>`) at the start of a line to format text as a blockquote—perfect for citing content or highlighting notes: ```markdown > "The best way to predict the future is to invent it." — Alan Kay
Links
Create clickable links by wrapping the link text in square brackets ([]), followed immediately by the target URL in parentheses (()):
[Explore Stack Overflow](https://stackoverflow.com)
Images
Embed images using a similar structure to links, but add an exclamation mark (!) at the start. The square brackets hold alt text (for accessibility), and the parentheses hold the image URL:
[A cozy cat curled up on a book](https://example.com/cat-book.jpg)
内容的提问来源于stack exchange,提问作者everestial

