Skip to content

Spurious bold and italic due to * and **kwargs in function signature #57

@Elizafox

Description

@Elizafox

When an asterisk (*) appears in a function signature, the highlighter goes haywire:

examples:

.. py:class:: FooClass(foo, bar, *, baz)

   ...

   .. py:method:: FooMethod(a, b, **kwargs)

   ...

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions