Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

AA Code Block

azulikaazulika13 downloads

Renders aa code blocks in MS PGothic 12pt so Japanese ASCII art keeps its original shape.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

```aa で囲んだコードブロックを MS Pゴシック 12pt で表示する Obsidian プラグインです。 2ch 系のアスキーアート(AA)を、作成時と同じ環境で崩さずに読むためのものです。

Renders fenced code blocks tagged aa with MS PGothic at 12pt — the environment Japanese ASCII art was originally drawn for. Kerning and ligatures are disabled so the art keeps its exact shape.

```aa
     ∧_∧
    ( ´∀`)
    (つ  つ
    | | |
    (__)_)
```

特徴

  • 閲覧ビュー: 対象ブロックにフォント・行間・折り返しを指定します。 Obsidian 標準のコピーボタンなどはそのまま使えます。
  • ライブプレビュー / ソースモード: 編集中のブロック内の行にも同じフォントを適用します(設定でオフ可)。
  • 字詰め・合字(kerning / ligature)を無効化しているので、フォント側の調整で AA がずれることがありません。
  • 長い行は折り返さず横スクロールするため、AA の形が保たれます。

使い方

コードブロックの言語タグに aa を指定します。

```aa
(ここに AA)
```

コマンドパレットの 「AA ブロックを挿入 / 選択範囲を囲む」 からも挿入できます。 選択範囲があればそれを ```aa で囲みます。

設定

項目 既定値 説明
対象の言語タグ aa カンマ区切りで複数指定できます(例: aa, ascii, mona)
フォント "MS Pゴシック", "MS PGothic", "IPAMonaPGothic", "Mona", sans-serif CSS の font-family にそのまま渡します
フォントサイズ 12(pt) 12pt = 16px。2ch 系 AA の標準サイズです
行の高さ 1.125 12pt 時に 18px となり、Windows での標準の行送りに一致します
長い行を折り返す オフ オンにすると横スクロールせず折り返しますが、AA の形は崩れます
ライブプレビューにも適用 オン 編集画面のブロック内の行にも適用します

macOS / Linux で使う場合

MS Pゴシックは Windows 標準のフォントです。他の OS では IPAMonaPGothic や Mona フォントなどの AA 用フォントを OS にインストールしたうえで、設定の「フォント」に指定してください。 既定値にはこれらがフォールバックとして入っています。

インストール

設定 → コミュニティプラグイン → 閲覧 から AA Code Block を検索してインストールします。

手動で入れる場合は Releases から main.js / manifest.json / styles.css をダウンロードし、 Vault の .obsidian/plugins/aa-codeblock/ に置いて Obsidian を再読み込みしてください。

開発

npm install
npm run dev    # 監視ビルド
npm run build  # 本番ビルド

不具合や要望は Issues へどうぞ。

ライセンス

MIT

HealthExcellent
ReviewSatisfactory
About
Render fenced code blocks tagged aa using MS PGothic at 12pt to preserve Japanese ASCII art (AA) layout. Disable kerning and ligatures to keep character alignment and apply the same styling in Live Preview so AA displays exactly as intended.
CodeFonts
Details
Current version
1.0.0
Last updated
Last week
Created
Last week
Updates
1 release
Downloads
13
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
azulikaazulikaazulika
GitHubazulika
  1. Community
  2. Plugins
  3. Code
  4. AA Code Block

Related plugins

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Templater

Create and use dynamic templates.

PlantUML

Generate PlantUML diagrams.

Kroki

Render Kroki diagrams.

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, and Markdown embedding.

Fontsource

Load custom fonts from Fontsource into your notes.

VSCode Editor

Edit Code Files like VSCode.

CustomJS

Reuse custom JavaScript across desktop and mobile.

JS Engine

Run JavaScript from within your notes.