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

Add Ability to Put Empty Lines Between List Items #157

Open
jrg94 opened this issue Sep 11, 2023 · 1 comment
Open

Add Ability to Put Empty Lines Between List Items #157

jrg94 opened this issue Sep 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jrg94
Copy link
Member

jrg94 commented Sep 11, 2023

Apparently, there are two styles of lists in markdown: tight and loose. The tight version is the standard version in SnakeMD. The loose version places an empty line between list items. I desire the loose feature which is not currently supported.

@jrg94 jrg94 added the enhancement New feature or request label Sep 11, 2023
@jrg94
Copy link
Member Author

jrg94 commented Sep 11, 2023

If you personally want to simulate this without the feature in place, you can try appending a newline (\n) to your list items and then wrapping them in a Raw block. Note that this will kill the nesting if your list items are multiline. Regardless, this was a workaround for me:

answer_list.append(snakemd.Raw(choice.get("answer") + "\n"))

Not ideal, surely, but it'll get the job done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant