AFAICT the first macro is correctly expanded. What makes you think it doesn't work?
However, macros, being objects, cannot cross paragraphs. The second example is really 2 paragraphs, not a macro containing two lines.