寻求可匹配三类特定模式的Perl正则表达式
Hey there! Let me lay out these Markdown formatting rules in a clean, easy-to-follow way with practical examples:
Below are the core formatting conventions you asked about, each with a clear demo:
Headings: Use number signs (
#) to define heading levels. More#s mean smaller headings (1-6 levels total).- Example:
## Secondary Headingrenders as:Secondary Heading
- Example:
List Items: Start each list entry with a dash (
-). Indent nested items with spaces or tabs to create hierarchy.- Example:
Renders as:- First main item - Second main item - Nested sub-item- First main item
- Second main item
- Nested sub-item
- Example:
Emphasized Text: Wrap text with asterisks (
*) for italics, or double asterisks for bold.- Italic:
*This is italicized*→ This is italicized - Bold:
**This is bolded**→ This is bolded
- Italic:
Code/Commands: Use single backticks (
`) for inline code, or triple backticks (```) for multi-line code blocks.- Inline code:
print("Hello World") - Multi-line code block example:
# Sample Perl code my $message = "Hello from Perl!"; print $message;
- Inline code:
Quoted Text: Prepend lines with a greater-than sign (
>) to create blockquotes. Nest quotes by adding more>s.- Example:
Renders as:> Original quote > > Nested quoteOriginal quote
Nested quote
- Example:
Links: Format as
[Link Text](URL). The text in brackets is what's displayed, the URL in parentheses is the target.- Example:
[Markdown Guide](https://www.markdownguide.org)→ Markdown Guide
- Example:
Images: Similar to links, but start with an exclamation mark:
. Alt text describes the image for accessibility.- Example:

- Example:
内容的提问来源于stack exchange,提问作者Raveen Kumar

