Markdown Special Characters

Asterisks and Underscores

Text with * asterisks * should be escaped.

Text with _ underscores _ should be escaped.

Multiple ** asterisks ** and __ underscores __.

At start: *asterisk and _underscore

At end: asterisk* and underscore_

Brackets and Parentheses

Square brackets: [text in brackets]

Parentheses: (text in parentheses)

Combined: [link](url) should be escaped

Nested: [[nested]] and ((nested))

Hash Symbols

# Hash at start of line

Text with # hash in middle

Multiple ### hashes

Hashtag: #markdown #test

Backticks

Single backtick: ` should be escaped

Multiple backticks: ``` should be escaped

Inline code: `code` should be preserved

Plus and Minus

+ Plus at start

- Minus at start

Text with + and - in middle

Math: 5 + 3 - 2 = 6

Dots and Numbers

1. Numbered list item

2. Another item

Text with 1. in middle

Version: 1.2.3

Angle Brackets

Less than: < should be escaped

Greater than: > should be escaped

Email: <user@example.com>

HTML tag: <div>content</div>

Pipes

Pipe symbol: | should be escaped in tables

Multiple pipes: || and |||

Text | with | pipes

Backslashes

Single backslash: \ should be escaped

Path: C:\Users\Documents

Escaped: \* \_ \# \`

Exclamation Marks

! Exclamation at start

Text with ! in middle

Image syntax: ![alt](url) should be escaped

Tildes

Single tilde: ~ in text

Double tilde: ~~ for strikethrough

Path: ~/Documents

Equals Signs

Equals: = in text

Multiple: === and ====

Math: x = 5

Combined Special Characters

Complex: *[text]* and _[link]_ and `code` with # hash

All together: * _ [ ] ( ) # ` + - . | \ ! ~ =

In sentence: Use *asterisks* for [links](url) and `code` with #tags.