On Sat, Sep 19, 2015 at 4:41 PM, Brad Jorsch (Anomie) <bjorsch(a)wikimedia.org
wrote:
> On Sat, Sep 19, 2015 at 7:09 AM, Nicolas Vervelle <nvervelle(a)gmail.com>
wrote:
>
>> Is it possible through the API to give it some wikitext and get in return
>> the same wikitext where {{subst:}} and {{safesubst:}} have been replaced,
>> as they would be when saving an edit ?
>>
>
> Use action=parse with onlypst=1.
>
>
Thanks Brad !
It almost works as I want, but there's just one thing that doesn't work as
I expected: sometimes, the text that I give to the API ends with a new
line, but in the result that new line is removed.
Is it normal ? Is there a way around this ?
Nico