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
Line breaks in code blocks #72
Comments
How did it go? Let me know if you can't figure out to solve the problem. |
Hi @xenatisch -- thanks for your quick response! I'm not quite sure how to set a Markdown interpreter that can fix this. Can you advise? I'm trying to replicate the functionality that github has for rendering .md files. Thanks! |
Have you followed the documentations, particularly the details on Markdowify function? |
Thanks @xenatisch. Your answers were very helpful. I ended up using Github's API for my use case – it adds all the css needed for code formatting. |
Excellent. Maybe we can suggest the API somewhere in our tutorials so others can also benefit from it. You're welcome to submit it as a contribution if you so wish. All the best with your project. |
I had the same issue where line breaks were not rendering correctly in code blocks. I found the issue only occurs when using the backtick notation. Markdown:
Renders as:
However, using the indent notation works. Markdown:
Renders as:
This behavior is inconsistent with other Markdown rendering tools. But the work-around is easy if you know what to expect. |
@xenatisch Hi, I am facing the same error in code formatting, the Markdownify function that you mentioned seems to be dead link, can you suggest me how to solve this issue. |
Hello,
I would expect line breaks to be parsed in code blocks.
For example, the markdown
```javascript
var x = 1;
var y = 2;
```
should render, much like it does on Github, as
Instead, markdownx renders it as
Is that intentional or am I missing something?
Thank you for building markdownx!
-- Niko
The text was updated successfully, but these errors were encountered: