With the following code, after replacing the second \myp{ああああ} with \mypvar{ああああ}, you will get the shorter space between the first line and the second line.
@require: stdja
let-block ctx +myp i = line-break true true ctx ((read-inline ctx i) ++ inline-fil)
let-block ctx +mypvar i = line-break true true (set-paragraph-margin 0pt 0pt ctx) ((read-inline ctx i) ++ inline-fil)
in
document (|title={};author={};show-title=false;show-toc=false;|)'<
+myp{ああああ}
+myp{ああああ}% shorter space after -> \mypvar{ああああ}
+myp{ああああ}
>
The picture shows the difference. (For making it clear, I changed the color, blue is for \myp{ああああ}+\myp{ああああ}+\myp{あああ} while red is for \myp{ああああ}+\mypvar{ああああ}+\myp{ああああ}.)
With the following code, after replacing the second
\myp{ああああ}
with\mypvar{ああああ}
, you will get the shorter space between the first line and the second line.The picture shows the difference. (For making it clear, I changed the color, blue is for
\myp{ああああ}+\myp{ああああ}+\myp{あああ}
while red is for\myp{ああああ}+\mypvar{ああああ}+\myp{ああああ}
.)