Skip to content

definition lists in  #1052

Closed
Closed
@oliver-sanders

Description

Problem

Definition lists are rendered differently when defined within domain documentation.

May be loosely related to #979.

Reproducible Project

Foo
   foo
*Bar*
   bar
``Baz``
   baz

.. py:class:: pub

   Foo
      foo
   *Bar*
      bar
   ``Baz``
      baz

   .. py:method:: qux

      qux

Screenshot 2021-02-12 at 12 57 15

Strangely the definition lists render differently to lower-level objects documented within the domain, are the two styles mixing? The rendering is especially awkward for literals.

I took a look at this page, however, there aren't any definition lists in that reference example. Perhaps it's an unusual thing to do.

Expected Results

I think that definition lists should render the same in both contexts.

Environment Info

  • Python Version: 3.7
  • Sphinx Version: 3.4.3, 5.0.1
  • RTD Theme Version: 0.5.1, 1.0.0

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions