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

Support double space new line #56

Closed
Niels-Be opened this issue Mar 20, 2024 · 3 comments
Closed

Support double space new line #56

Niels-Be opened this issue Mar 20, 2024 · 3 comments

Comments

@Niels-Be
Copy link

Niels-Be commented Mar 20, 2024

In Github or Gitlab Markdown a double space in the end of a line forces a line break. e.g. inserts a <br />.

This is helpful to force line breaks without adding an empty line between the comments.

Can this be added?

Maybe as a configurable markdown extension list in

return markdown.markdown(md, extensions=['fenced_code'])

I would also like to have nl2br and sane_lists
See: https://python-markdown.github.io/extensions/#officially-supported-extensions

@markvincze
Copy link
Owner

Hi @Niels-Be,

@yinzara has implemented the capability to be able to specify further markdown extension, you see it at the bottom of the config example here: https://github.com/markvincze/sabledocs?tab=readme-ov-file#customization, it's available in the latest released version.
With this feature you can enable the nl2br and sane_lists extensions.
Can you give it a try if this works for you?

@Niels-Be
Copy link
Author

hi, does not work yet as in sabledocs/src/sabledocs/proto_descriptor_parser.py the new config parameter is not used

@markvincze
Copy link
Owner

@Niels-Be Thanks for checking, indeed it was missed there, fix is here: #63

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

2 participants