Jump to content

Parsedown Line break


mr.mc.mauser
 Share

Recommended Posts

Hello,

I have a Littele Problem with Parsedown.

here my code:

      $ersetzer = array(
        "turniername" => $datenseite->headline,
        "name" => $input->name,
        "vorname" => $input->vorname,
        "mailadresse" => $input->mail,
        "bklasse" => getlisttext($datenseite->turn_bklassen, $input->bklasse),
        "aklasse" =>  getlisttext($datenseite->turn_aklassen, $input->aklasse),
        "gender" => getlisttext($datenseite->turn_gender, $input->gender),
        "meldung" => getlisttext($datenseite->turn_meldung, $input->meldung),
        "camp" => getlisttext($datenseite->turn_camp, $input->camp),
        "grill" => $grillname,
      );


      $betreff =  wirePopulateStringTags($datenseite->getUnformatted("mail_an_betreff"), $ersetzer);
      $plaintext = wirePopulateStringTags($datenseite->getUnformatted("mail_an_text"), $ersetzer);
      $htmltext = wirePopulateStringTags($datenseite->mail_an_text, $ersetzer);

The Plain text works perfekt,
But the htmltext have no <br />  

what must i do to become the <br />instead of \n

Sorry for my Bad English

Greetings
Robert

Link to comment
Share on other sites

When using Markdown, you can put two spaces before a line break to insert a soft break.

first line␣␣ (two spaces before line break)
second line

// this would render as

<p>first line<br/>second line</p>

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...