Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: tree fences render an empty paragraph first #50

Closed
pawamoy opened this issue Jun 12, 2024 · 0 comments
Closed

bug: tree fences render an empty paragraph first #50

pawamoy opened this issue Jun 12, 2024 · 0 comments
Assignees

Comments

@pawamoy
Copy link
Owner

pawamoy commented Jun 12, 2024

Description of the bug

When rendering a tree with a tree fence, an empty paragraph is rendered before the code block.

To Reproduce

Just add a tree fence to a Markdown page:

```tree
./
    hello/
```

Full traceback

No traceback.

Expected behavior

No empty paragraph. It breaks some styling features of Material for MkDocs.

Environment information

python -m markdown_exec.debug  # | xclip -selection clipboard
  • System: Linux-6.9.3-arch1-1-x86_64-with-glibc2.39
  • Python: cpython 3.11.5 (/media/data/dev/griffe/.venv/bin/python)
  • Environment variables:
    • PYTHONPATH: /home/pawamoy/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/pep582
  • Installed packages:
    • markdown-exec v1.8.3

Additional context

/

@pawamoy pawamoy self-assigned this Jun 12, 2024
@pawamoy pawamoy closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant