-
Notifications
You must be signed in to change notification settings - Fork 858
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 CodeHilite lineseparator option #817
Comments
How have you done this? I'm not aware of any Or, in other words, I don't understand what you are having trouble with. |
@waylan My apologies, I actually meant the Pygments lineseparator option. What I've done in my local Python-Markdown is simply add a |
Ah, so you have forked the extension. Then you need to install it as a separate extension (under a new name) and list that new extension in your Or you can address the issue upstream with the Python-Markdown project and if, your change is added, have assess to the feature in the next release of Python-Markdown. |
Hmm, Apparently in my previous response I missed that this was reported to Python-Markdown not MkDocs. Sorry about that. In any event, there are currently a couple open issues regarding CodeHilite which contemplate expanding support to allow any and all Pygments options to be defined. I'm closing this as a duplicate of #334. See also #816 and #822. |
Would make my day if we could configure
lineseparator
for CodeHilite.The use case is a library that I've developed which, among other things, removes trailing whitespaces from its input: https://github.com/denizdogan/django-whiteless/
I use MkDocs to generate the documentation with example input and example output. Since I cannot change the
lineseparator
option for CodeHilite some examples look silly, because the extra newlines at the end of each input aren't included in the HTML output. For this reason, I'd like to be able to configurelineseparator
to be<br>
.I've managed to configure this in my local version of Python-Markdown and was about to make a PR but couldn't quite figure out the unit test for when Pygments wasn't installed.
EDIT: Typo
The text was updated successfully, but these errors were encountered: