The Dead Simple Markdown Guide to Escaping Characters
2024-8-20 23:50:0 Author: hackernoon.com(查看原文) 阅读量:2 收藏

Read on Terminal Reader

Read this story w/o Javascript

Open TLDRtldt arrow

Too Long; Didn't Read

To display special characters in Markdown, use a backslash (\) before the character. This technique helps you show symbols that might otherwise be interpreted as formatting commands, such as asterisks or brackets.

featured image - The Dead Simple Markdown Guide to Escaping Characters

Typesetting HackerNoon profile picture

Escaping Characters

To display a literal character that would otherwise be used to format text in a Markdown document, add a backslash (\) in front of the character.

\* Without the backslash, this would be a bullet in an unordered list.

The rendered output looks like this:

* Without the backslash, this would be a bullet in an unordered list.

Characters You Can Escape

You can use a backslash to escape the following characters.

Character

Name

backslash

`

backtick (see also escaping backticks in code)

*

asterisk

_

underscore

{ }

curly braces

[ ]

brackets

< >

angle brackets

( )

parentheses

#

pound sign

+

plus sign

-

minus sign (hyphen)

.

dot

!

exclamation mark

|

pipe (see also escaping pipe in tables)

This guide is a Matt Cone project available on Markdown Guide under the CC BY-SA 4.0 license.


文章来源: https://hackernoon.com/the-dead-simple-markdown-guide-to-escaping-characters?source=rss
如有侵权请联系:admin#unsafe.sh