Skip to content

MyST-Parser test fail with docutils 0.22+: boolean attribute values converted to numbers #1057

Description

@befeleme

What version of myst-parser are you using?

4.0.1

What version dependencies are you using?

docutils 0.22.3
sphinx 8.2.3

What operating system are you using?

Linux

Describe the Bug

MyST-Parser's tests fail with the abovementioned combinations of the basic dependencies.

Boolean values of attributes are now rendered as stringified numbers rather than booleans, e.g.
nowrap="True" is now nowrap="1".

Other affected values include:

linenos
is_div
id_link
reference internal
glob
hidden
includehidden
titlesonly
refexplicit
refwarn

Expected Behavior

No response

To Reproduce

No response

Activity

  1. chrisjsewell commented on Jan 15, 2026

    @chrisjsewell
    Member

    fixed in #1084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions