notation
notation
Cosense 記法ガイドをトピック別に出力します。
書式
cos notation [<topic>]
引数なしのとき: 利用可能なトピック一覧テーブルを表示します。
<topic> を指定したとき: そのトピックのセクションのみ表示します。
利用可能なトピック
basics / list / link / hashtag / image / icon / decoration / inline-code / code-block / mermaid / table / quote / math / cli / helpfeel / location / tips
使用例
code:bash
# トピック一覧を表示
cos notation
# 文字装飾記法のみ取得
cos notation decoration
# Mermaid 記法のみ取得
cos notation mermaid
# JSON 形式で全データ取得
cos notation --json --results-only
# 特定トピックを JSON で取得
cos notation table --json --results-only
# 不正なトピック指定 → exit 5 + 利用可能トピック一覧を表示
cos notation bad-topic
備考
v0.9.0 より引数なし実行がトピック一覧の表示に変わりました(破壊的変更)。
Cosense 記法の lint は --strict-notation フラグで有効化できます (page edit, page line replace 等)。
関連ページ
convert
Scrapbox記法
#read-command