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】<summary>タグ内でコードスパン(インラインコード)を使う

0
Posted at

はじめに

<summary> タグの中でバッククォート `` を使用するとコードスパンとして機能せずそのまま表示される。

コード
<details><summary>`text`</summary>

```
code
```
</details>
`text`
code

解決策

バッククォートではなく <code> タグを使う。

コード
<details><summary><code>text</code></summary>

```
code
```
</details>
text
code

関連

Code spans - コードスパン
Details - 折りたたみ

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?