Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Conflict between Code annotations and markdown-exec lib #7301

Closed
4 tasks done
gabrielbdornas opened this issue Jun 27, 2024 · 1 comment
Closed
4 tasks done

Conflict between Code annotations and markdown-exec lib #7301

gabrielbdornas opened this issue Jun 27, 2024 · 1 comment

Comments

@gabrielbdornas
Copy link

Context

I'm trying to build a series of python tutorials and think it will be nice to have the result of the code block execution in a result table. For this, I found the markdown-exec to help me.

I'm my current project, as I'm working in tutorials, I've been using code annotations a lot.

After install and configuring markdown-exec within markdown_extensions property, the code annotations stopped working.

So, the code results are working, but the cool code annotations option crash:

image

image

Bug description

To me seems a kind of conflict betwwen the code annotations config and the markdown-exec.

  • When I do not add markdown-exec options to my code block, the annotations works:

image

image

  • When add markdown-exec options to my code block, it starts to work, but the annotations crash (exec="1" source="tabbed-left"):

image

Related links

Reproduction

The problem could be seen at this branch of my code.

Steps to reproduce

  1. Clone the code.
  2. Install requirements with pip install -r requirements.txt.
  3. Rum mkdocs serve.
  4. Viste the page located at http://localhost:8000/blog/python-course---class-1/#your-first-python-program

Obs.: The conflicted code is located at this file.

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting. Since we do not officially support markdown-exec, I'm converting this to a discussion and tagging @pawamoy for visibility. If we can make it work, happy to review a PR that adds the relevant changes, but we're currently frying much, much bigger fish that we cannot budget time to add support for additional third-party libraries 🤟

Repository owner locked and limited conversation to collaborators Jun 27, 2024
@squidfunk squidfunk converted this issue into discussion #7302 Jun 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
2 participants