-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
content/blog/2020/2020-07-06___markdown-escape-backquote.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Markdown でコードブロックの中にバックスラッシュ3つを書く | ||
date: 2020-07-06 12:00:00 | ||
tags: | ||
- Markdown | ||
--- | ||
|
||
Markdown の複数行コードブロックは普通以下のように書きます。 | ||
|
||
````md | ||
sample code | ||
|
||
``` | ||
console.log('hello') | ||
``` | ||
```` | ||
|
||
その中に` ``` `を書くときは ` ```` ` を使います。 | ||
|
||
`````md | ||
Markdown の複数行コードブロックは普通以下のように書きます。 | ||
|
||
```` | ||
sample code | ||
|
||
``` | ||
console.log('hello') | ||
``` | ||
```` | ||
````` | ||
|
||
※この記事はマークダウンで書いているので更に ` ````` ` で囲っています。 | ||
|
||
#### 補足 | ||
|
||
バックスラッシュでエスケープしようとするとそのままでてしまいます。 | ||
|
||
```md | ||
sample code | ||
|
||
\`\`\` | ||
console.log('hello') | ||
\`\`\` | ||
``` | ||
|
||
このリポジトリの readme を書いていたときに知ったネタでした。 | ||
[elzup/codeblock\-cat](https://github.com/elzup/codeblock-cat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters