Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zrudyt opened this issue May 22, 2024 · 2 comments
Open

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

zrudyt opened this issue May 22, 2024 · 2 comments

Comments

@zrudyt
Copy link

zrudyt commented May 22, 2024

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

@karlb
Copy link
Owner

karlb commented May 22, 2024 via email

@zrudyt
Copy link
Author

zrudyt commented May 24, 2024

Thanks! Here's another one for you:

echo 'hello_world' | smu

returns:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants