78
54

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 5 years have passed since last update.

MarkdownでTables内に'|'(バーティカルバー,縦線)を使う方法

Posted at

##バーティカルバー?
パイプ処理やら絶対値やらブロック変数やらに使う'|'の記号。
これってバーティカルバーって言うんですってよ、奥さん。

##エスケープさせても'|'が使えない
Markdownではテーブル表示する用に使用されてるんですが、
そのテーブル内で使いたい時にエスケープさせても効かなくて。

| abc | xyz |
|-----|-----|
| A|C | X|Z |
| A¥|C | X¥|Z |

abc xyz
A C
C

##解決法
||を使いましょう。

| abc | xyz |
|-----|-----|
| A|C | X|Z |
| A|C | X|Z |

abc xyz
A|C X|Z
A|C X|Z

##最後に
つまりは文字参照が使えますよ、ってことで。

78
54
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
78
54

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?