python rendering is changing double blank lines
raven42 opened this issue · 0 comments
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: