rst-to-myst icon indicating copy to clipboard operation
rst-to-myst copied to clipboard

error: block-level target has children

Open cpitclaudel opened this issue 4 years ago • 1 comments
trafficstars

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

cpitclaudel avatar Aug 20 '21 05:08 cpitclaudel

Hmm, thats a weird one, thanks I'll try to have a look at some point.

chrisjsewell avatar Sep 13 '21 13:09 chrisjsewell