executablebooks / rst-to-myst

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

Indentation is sometimes not applied to the converted directive content #9

Closed choldgraf closed 3 years ago

choldgraf commented 3 years ago

I'm not sure exactly when this happens, but I noticed that sometimes the proper indentation isn't applied to the output content if the original was indented. For example:

2. It must explicitly specify a tag in the image you source.

   When sourcing a pre-existing Docker image with ``FROM``,
   **a tag is required**. The tag *cannot* be ``latest``. Note that tag
   naming conventions differ between images, so we recommend using
   the SHA tag of the image.

converts to

2. It must explicitly specify a tag in the image you source.

   When sourcing a pre-existing Docker image with `FROM`,
**a tag is required**. The tag *cannot* be `latest`. Note that tag
   naming conventions differ between images, so we recommend using
   the SHA tag of the image.

Perhaps this is related to the ** characters?

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: