LoginSignup
0
0

More than 1 year has passed since last update.

【Markdown】<summary>タグ内でコードスパン(インラインコード)を使う

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