Macros in CJK text

Macros only render if a space precedes them.
Languages such as Chinese or Japanese do not use spaces, thus making it impossible to use macros.

foo {{macro}}bar ← renders
foo{{macro}}bar ← does not render
青い{{macro}}です。 ← does not render

Consider passing the surrounding text as parameter, either:

  • only before
    • definition: :macro "$1何か"
    • usage: {{macro 青い}}です。
  • both before and after
    • definition: :macro "$1何か$2"
    • usage: {{macro 青い, です。}}

The problem is real.

  • My suggestion was merely a possible workaround.
  • Currently you may remove the undesired space only through scripting.