-
Notifications
You must be signed in to change notification settings - Fork 12
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
Spurious bold and italic due to * and **kwargs in function signature #57
Comments
I can reproduce this. The error is in I believe that we can fix this by including the entire line in the
with
(i.e. inserting I'm not yet sure if we want to include the entire directive in the block's |
While I think this is probably the right fix, this change also exacerbates many issues with nested directives, many of which are outlined in other various issues. Another way to put it is that this error happens to obscure some more serious errors. I made a few basic attempts to resolve those other issues, but unfortunately I'm still unsure how to fix this one. What needs to happen is the method in I'll have a crack at it this weekend and see how it goes. |
(Finally looking at this 10 months later...) Removing Defining a new "cruft" which excludes Are there any directive headers which would use syntax highlighting? I can't think of any, but Niko must have added it for a reason? |
The above suggestion would not work. Everything after As a one-line example, this would need to support highlighting:
Part of the issue may be that I think that the only solution here is to carve out an exception for things like |
Hi, I'm facing the same issue when asterisks occur within code-blocks. Is there any fix for this? |
Not at the moment; unfortunantely I have a lot going on, and this project is rather far down the list. |
When an asterisk (*) appears in a function signature, the highlighter goes haywire:
examples:
Escaping these results in the backslashes appearing in the final output, so that's not an option. It really is intended to work like this.
Anywhere function signatures can appear, the syntax highlighter ought to ignore formatting. Note that lines can also continue with backslashes.
The text was updated successfully, but these errors were encountered: