-
Notifications
You must be signed in to change notification settings - Fork 812
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 Markdown: Print lists #1119
Comments
Something like # Markdown
Current list of values:
* {{ '\n * '.join(l) }} or #Markdown
Beginning of list: {{ [' * {}\n'.format(item) for item in l[:2]] }} Should work, hopefully? |
So, the general unpacking from list to string works, but the |
Hmm, ok, something more complex must be going on. I'll try to have a more detailed look today... |
So, it's a fairly simple bug in that the js was expecting marked to wrap everything in #### Markdown
Beginning of list: {{ [' - {}\n'.format(item) for item in list(range(10))[:5]] }}
Beginning of list: {{ print(''.join([' - {}\n'.format(i) for i in list(range(10))[:5]])) }} ends up formatted as
Anyway, I hope that helps a little 🤷♂️ |
(see #1122 for fix) |
Thanks for this very useful extension!
I'm wondering if it's possible to make it work with lists as well, maybe automatically adding a new line for each element?
In code, I want to be able to:
# Markdown Current list values: {{l}}
but also:
Would that be possible? At least currently, it doesn't seem to work (mac/conda-forge up-to-date).
The text was updated successfully, but these errors were encountered: