2

I have a recipe that drops the weather forecast for the day into a text file in dropbox. It's set up to insert the report as html within <div> blocks so that it formats nicely when rendering Markdown. It all works fine except for the <br> tags. I want them to print in the text file as <br> but instead they are printed as new lines. Obviously, this is what is expected, but is there a way around it?

I can enter <br><br> and get the line breaks in Markdown, but because they're between 2 <div> tags, Markdown renders them as html and ignores the line breaks.

  • Have you tried escaping the brackets? Maybe it can do the trick \<br\> – arieljannai Jul 7 '18 at 19:09
  • did you tried </br> ? – user0 Jul 7 '18 at 19:10
  • I tried <br /> but it converted it to <br>. I can try the other formats and see what happens. – Jeff Jul 7 '18 at 19:20
  • 1
    Try encoding them: &lt;br&gt; – ale Jul 7 '18 at 20:02
  • I tried \<br\> and &lt;br&gt; and IFTTT converted them both to <br>. I also tried </br> but IFTTT deleted it. – Jeff Jul 7 '18 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.