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

Post preview works incorrectly #937

Open
shelkmike opened this issue Dec 20, 2023 · 1 comment
Open

Post preview works incorrectly #937

shelkmike opened this issue Dec 20, 2023 · 1 comment

Comments

@shelkmike
Copy link

Hi. First, thank you for making and maintaining Biostars.

I noticed that sometimes post preview works incorrectly.
For example, when I want to add an empty line. As far as I know, there are two ways to add empty lines in Markdown.

  1. The first is to use the <br> tag. The will be an empty line in the post. But the preview will show just the text "<br>".
  2. The second is to use "\", as suggested here https://stackoverflow.com/a/64164898 . This works vice-versa: there will be an empty line in the preview, but the post will have a "\" character instead of an empty line.
@ialbert
Copy link
Owner

ialbert commented Dec 20, 2023

Yes, unfortunately, this is the effect of Markdown not having a strict definition (at least at the time we implemented the features), for the preview we are using a Javascript library, but after submission we are using a Python library to process the Markdown. The two implementations differ.

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