Dear Sirs programmers!
Question essence in the following:
There is a variable $content of the form:
# This is a string \n\nhttps://s10.postimg.org/nqmx035d5/image.jpg\n\nPresent to you is the first
As you can see here for markdown formatting is used, the output I want to get processed correctly text but get get completely taken the text in the h1 tag, i.e. when processing markdown does not consider \n to the end of the row.
Tried to replace br with \n, doesn't help.
Treated with markdown like this:
$show = Markdown::convert($show);
However, if I put in the database of enter to wrap to a new line, the processing is correct.
What do I need to replace \n to the text is rendered correctly?
Can first somehow send the html to the output, pick it up, and then dobranotch a markdown? But it looks kind of.. Wrong.) Could you tell me?