テキストの例#
- 基本テキスト
この行のテキストは削除されたテキストとして扱われることを意図しています。
この行のテキストは下線付きで表示されます。
この行のテキストは太字のテキストとして表示されます。
この行のテキストは斜体のテキストとして表示されます。
- 先導テキスト
これは先導段落です。通常の段落とは異なります。
- 絵文字1
それはとても面白いです!😃
- 略語
HTML
リストの例#
-
フルーツ
- りんご
- オレンジ
- バナナ
-
乳製品
- 牛乳
- チーズ
-
プレスリリースを書く
-
ウェブサイトを更新する
-
メディアに連絡する
引用の例#
メモリを共有することでコミュニケーションを行わず、コミュニケーションを行うことでメモリを共有する。
— Rob Pike2
{.blockquote}
引用の例#
これは書籍3への参照です。
数式の例#
これはインラインの数式です $-b \pm \sqrt {b^2 - 4ac} \over 2a$
これはインラインの数式ではありません:
表の例#
- 基本的な表
斜体 | 太字 | コード |
---|---|---|
斜体 | 太字 | コード |
{.table} |
- 整列付きの表
{{< table "table-striped" >}}
# | 項目 | 左揃え | 中央揃え | 右揃え |
---|---|---|---|---|
1. | 最初の項目 | いくつかのテキスト | もっとテキスト | さらにテキスト |
2. | 2 番目の項目 | いくつかのテキスト | もっとテキスト | さらにテキスト |
3. | 3 番目の項目 | いくつかのテキスト | もっとテキスト | さらにテキスト |
{{< /table >}} |
- 境界線付きの表
# | 項目 |
---|---|
1. | 最初の項目 |
2. | 2 番目の項目 |
3. | 3 番目の項目 |
{.table .table-bordered .border-primary} |
コードの例#
go#
package main
import (
"fmt"
"io/ioutil"
"os/exec"
)
func main() {
dateCmd := exec.Command("date")
dateOut, err := dateCmd.Output()
if err != nil {
panic(err)
}
fmt.Println("> date")
fmt.Println(string(dateOut))
grepCmd := exec.Command("grep", "hello")
grepIn, _ := grepCmd.StdinPipe()
grepOut, _ := grepCmd.StdoutPipe()
grepCmd.Start()
grepIn.Write([]byte("hello grep\ngoodbye grep"))
grepIn.Close()
grepBytes, _ := ioutil.ReadAll(grepOut)
grepCmd.Wait()
fmt.Println("> grep hello")
fmt.Println(string(grepBytes))
lsCmd := exec.Command("bash", "-c", "ls -a -l -h")
lsOut, err := lsCmd.Output()
if err != nil {
panic(err)
}
fmt.Println("> ls -a -l -h")
fmt.Println(string(lsOut))
}
python#
import matplotlib.pyplot as plt
price = [2.50, 1.23, 4.02, 3.25, 5.00, 4.40]
sales_per_day = [34, 62, 49, 22, 13, 19]
plt.scatter(price, sales_per_day)
plt.show()
動画の例#
youtube#
bilibili#
プレゼンテーションの例#
- slidev
- webslides