Skip to content

Instantly share code, notes, and snippets.

@yanaokahiroki
Last active July 30, 2022 06:27
Show Gist options
  • Save yanaokahiroki/b106f4941f530957d4d379b3bde0c336 to your computer and use it in GitHub Desktop.
Save yanaokahiroki/b106f4941f530957d4d379b3bde0c336 to your computer and use it in GitHub Desktop.
折りたたみコメント

概要

GitHubのmarkdown記法でおりたたみができると知ったので書いてみた。 基本的にはdetailsタグの中にsummaryタグを書き、その後におりたたみ内のテキストを書く。

中にテキスト

おりたたみサマリー

おりたたみ内コメント1

おりたたみ内コメント2

おりたたみ内コメント3

中にコードブロック

おりたたみサマリー

おりたたみ内コードブロック

class Hello{
    public static void main(String[] args) {
        System.out.println("Hello World");        
    }
}

中にリスト

おりたたみサマリー

おりたたみ内リスト

  1. itibann
  2. nibann
  3. sannbann

中に画像

おりたたみサマリー

おりたたみ内画像

LGTM

参考

Using details in GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment