TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Python) Markdown Exec, execute code blocks and render their output

2 点作者 Pawamoy11 个月前
Hey everyone, here&#x27;s an extension I made for Python-Markdown (<a href="https:&#x2F;&#x2F;github.com&#x2F;Python-Markdown&#x2F;markdown">https:&#x2F;&#x2F;github.com&#x2F;Python-Markdown&#x2F;markdown</a>). It builds on top of PyMDown Extensions&#x27; SuperFences (<a href="https:&#x2F;&#x2F;facelessuser.github.io&#x2F;pymdown-extensions&#x2F;extensions&#x2F;superfences&#x2F;" rel="nofollow">https:&#x2F;&#x2F;facelessuser.github.io&#x2F;pymdown-extensions&#x2F;extensions...</a>), and allows Markdown writers to execute their Markdown code blocks to render the execution output in place of &#x2F; in addition to the code blocks.<p>Languages supported: python&#x2F;pycon; sh&#x2F;bash&#x2F;console; md (literate programming!)<p>Special fences: tree, to easily render file trees; pyodide, to render an interactive Ace.js editor that runs Python code thanks to Pyodide<p>Adding examples to the gallery is quite fun :) Don&#x27;t hesitate to create an issue if you&#x27;d like me to add examples for another tool or Python library!

暂无评论

暂无评论