smu icon indicating copy to clipboard operation
smu copied to clipboard

<br> works but <br><br> doesn't

Open zrudyt opened this issue 1 year ago • 2 comments

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&gt;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

zrudyt avatar May 22 '24 04:05 zrudyt

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' | smu

I expect to see:

Hello

world

but 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: @.***>

karlb avatar May 22 '24 06:05 karlb

Thanks! Here's another one for you:

echo 'hello_world' | smu

returns:

<p>hello<em></em>orld</p>

zrudyt avatar May 24 '24 03:05 zrudyt