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

python rendering is changing double blank lines #705

Open
raven42 opened this issue Feb 1, 2023 · 0 comments
Open

python rendering is changing double blank lines #705

raven42 opened this issue Feb 1, 2023 · 0 comments

Comments

@raven42
Copy link

raven42 commented Feb 1, 2023

Awesome extension, but I found a minor issue in the renderer for python (maybe others, but didn't test).

When using Markdown Here for python rendering, it is changing double blank lines before function definitions to just a single blank line. As per python PEP 8 standards, there should always be two blank lines before a python function definition. If I type this in as it should be, and then high the 'Toggle Markdown Here', it renders the python code syntax with only a single blank line.

This is pretty minor, but a little annoying none-the-less.

I'm using Chrome 109.0.5414.120 and Markdown Here 2.12.0

Example, if I type this:

```python
import os


def main():
     print('test')


if __name__ == '__main__':
     main()
``` 

Github correctly renders as follows with multiple blank lines before and after the main() function definition:

import os


def main():
     print('test')


if __name__ == '__main__':
     main()

However when doing this with Markdown Here, I get the following:
image

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

1 participant