Skip to content

error: block-level target has children #32

Description

@cpitclaudel

Describe the problem

The following input fails to convert:

.. sidebar:: _`Some label`

   ABC

The error is:

test.rst -> test.md
FAILED:
error: block-level target has children

Link to your repository or website

No response

Steps to reproduce

rst2myst convert test.rst with the document above

The version of Python you're using

3.8

Your operating system

GNU/Linux (Mint)

Versions of your packages

$ rst2myst --version
rst2myst, version 0.3.2
$ python3 --version
Python 3.8.10
$ sphinx-build --version
sphinx-build 3.5.4
$ pip show myst_parser | grep Version
Version: 0.15.1

Additional context

This is the corresponding pseudoXML:

<document source="test.rst">
    <sidebar>
        <title>
            <target ids="some-label" names="some\ label">
                Some label
        <paragraph>
            ABC

Activity

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