executablebooks / rst-to-myst

Convert ReStructuredText to MyST Markdown
https://rst-to-myst.readthedocs.io
MIT License
59 stars 10 forks source link

error: block-level target has children #32

Open cpitclaudel opened 3 years ago

cpitclaudel commented 3 years ago

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
chrisjsewell commented 2 years ago

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