Skip to main content
Answered

Line break in description

  • June 13, 2025
  • 1 reply
  • 100 views

Forum|alt.badge.img

Hi,

We are pushing activities on Strava and we’d like to add line break and markdown into the description. We are using php code. With this example:

$description = “I’ve done a test with **xxx**:\n";

$description .= '**SV1**=150 W';

The line break won’t appear in the activity description (nor the bold characters). 

 

Does anyone has a solution for that ? 

Thanks,

Pierre

 

 

Best answer by Jan_Mantau

Please make sure that \n is replaced by CarriageReturn+Linefeed (characters 13 and 10) when sending the description to Strava.

The description that is shown in Strava is a plain text field, you have to use other methods like emoji characters for emphasizing.

1 reply

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • Answer
  • June 13, 2025

Please make sure that \n is replaced by CarriageReturn+Linefeed (characters 13 and 10) when sending the description to Strava.

The description that is shown in Strava is a plain text field, you have to use other methods like emoji characters for emphasizing.