Skip to main content
  • Created:
  • Updated:
  • Author:
    Takeshi Takatsudo

Japanese Text

The formatter has special handling for Japanese (CJK) text to avoid common formatting issues that generic markdown formatters cause.

Rules

  • Japanese punctuation spacing is preserved
  • No extra spaces are inserted around Japanese characters
  • Bold/emphasis markers work correctly with Japanese text
  • URLs and parenthetical expressions in Japanese text are preserved
  • Line breaks within Japanese paragraphs are not altered
  • Question marks followed by Japanese text get a space after them

Examples

Japanese headings and content

Before:

# 日本語の見出し
内容です。

After:

# 日本語の見出し

内容です。

Bold text with Japanese

Japanese bold text is preserved without unwanted space changes:

Before:

この値を **×2** します

After (unchanged):

この値を **×2** します

Image alt text with Japanese and colons

Before:

![図:VCAによるオーディオシグナルの減衰処理](/images/p/vca-exp-2)

After (unchanged — colons and Japanese in alt text preserved):

![図:VCAによるオーディオシグナルの減衰処理](/images/p/vca-exp-2)

URLs in parenthetical expressions

Before:

詳細は (https://example.com) をご覧ください

After (unchanged — parentheses around URL preserved):

詳細は (https://example.com) をご覧ください

Question mark spacing

A space is inserted after a question mark when followed by Japanese text:

Before:

シンセのDIYってどういうこと?自分で作れたり

After:

シンセのDIYってどういうこと? 自分で作れたり

Multi-line Japanese paragraphs

Line breaks within Japanese paragraphs are preserved as-is:

Before:

こんにちは、Takazudo Modularです。
Takazudo Modular Highlightsなどというメルマガの名前にしてみました。
そんな年中送るかは分かりませんが……。

After (unchanged):

こんにちは、Takazudo Modularです。
Takazudo Modular Highlightsなどというメルマガの名前にしてみました。
そんな年中送るかは分かりませんが……。