<br> works but <br><br> doesn't
If I run the following command:
echo 'Hello<br><br>world' | smu
I expect to see:
<p>Hello<br><br>world</p>
but I get this:
<p>Hello<br><br>world</p>
If I use only one <br> then smu works as expected, but two <br>s mangles the second one. Markdown.pl works in both cases. Do you have any suggestions on how to get around this?
Note: I know there are other ways to embed newlines in the rendered HTML, but I need the Markdown source to be on one line because I need to pass it through sort
Looks like a bug. As a workaround you could use Hello<br> <br>world or
similar until this is fixed.
On Wed, May 22, 2024 at 6:28 AM Rudy T @.***> wrote:
If I run the following command:
echo 'Hello
world' | smuI expect to see:
Hello
worldbut I get this:
Hello
If I use only one
then smu works as expected, but two
s mangles the second one. Markdown.pl works in both cases. Do you have any suggestions on how to get around this?Note: I know there are other ways to embed newlines in the rendered HTML, but I need the Markdown source to be on one line because I need to pass it through sort
— Reply to this email directly, view it on GitHub https://github.com/karlb/smu/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDLBJHGY6NKSNUDXLJKMDZDQNHPAVCNFSM6AAAAABIC2GBLGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDSNJUGM4DANY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks! Here's another one for you:
echo 'hello_world' | smu
returns:
<p>hello<em></em>orld</p>