0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Markdownのテーブル内のコード記法でパイプを書く

Posted at

概要

GitHubやQiitaのMarkdownにおいて、テーブル内にパイプ(|)を含んだコード記法を書く方法


value1 || value2のようなコードが書きたい時、下記のように書くことはできない

記述例

.md
 a   | b
 --- | ---
   1 | `value1 || value2`
   2 | `value1 || value2`
   3 | <code>value1 || value2</code>

表示例

a b
1 `value1
2 value1 &#x7c;&#124; value2
3 value1

正しくはこのように書く

記述例

.md
 a   | b
 --- | ---
   1 | <code>value1 &#x7c;&#x7c; value2</code>

表示例

a b
1 value1 || value2
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?