AI觉醒星球
Awakening is here
Knowledge File / AI技能杠杆
2026-08-17 0 浏览 会员

Markdown SVG 升级

Simon Willison 升级了他的 Markdown SVG 渲染工具,新增将动画 SVG 导出为 MP4 视频的功能,方便在不支持 SVG 动画的平台上分享。

SOURCE / AI技能杠杆 MIN / 4 ACCESS / 会员 POST / 2026-08-17 07:59:37

原贴

查看原文
作者:Simon Willison 来源站点:simonwillison.net 原贴时间:

原文

I started building my markdown-svg-renderer tool in May , but I've since added enough features to it that it's worth talking about here again. It's evolved into my ideal tool for sharing Markdown transcripts that include SVG documents. Given my proclivity for drawing pelicans riding bicycles this is a problem that I needed to solve! The tool is very simple. Navigate to markdown-svg-renderer in your browser and paste in some Markdown to see it rendered... or save that Markdown to a CORS-friendly URL or a GitHub Gist and paste in a URL to that document. The URL option will give you a bookmarkable page, for example https://tools.simonwillison.net/markdown-svg-renderer#url=https%3A%2F%2Fgist.github.com%2Fsimonw%2F6f9e48293be5c916652d29f0dc0b0657 - which bakes in the URL to this Gist . If you visit the Gist you'll see raw SVG: In the rendered tool that looks like this instead: As you can see, that SVG block in the Markdown has been transformed into a rendered SVG (in this case animated) plus several tabs. The tabs are the really fun bit. The PNG and JPEG tabs render that SVG to those image formats in the browser and lets you copy or download them - useful for sharing on platforms that don't support SVG directly. The MP4 tab is new today - it examines the SVG to see if it contains any animations, attempts to guess how long the looped video should be, then renders a whole bunch of frames of the animation and loads 30+MB of ffmpeg.wasm so it can compile those frames into an MP4 video using the full power of FFMPEG compiled to WebAssembly and running in the browser. Being able to turn an animated SVG into a MP4 again makes it easy to share on platforms that can't support SVG animation natively. It's a neat trick! Tags: svg , markdown , tools

中文翻译

我五月份开始构建我的 markdown-svg-renderer 工具,但后来添加了足够多的功能,值得在这里再次讨论。它已经演变成我分享包含 SVG 文档的 Markdown 转录本的理想工具。鉴于我喜欢画骑自行车的鹈鹕,这是一个我需要解决的问题!这个工具非常简单。在浏览器中导航到 markdown-svg-renderer 并粘贴一些 Markdown 来查看渲染效果... 或者将 Markdown 保存到支持 CORS 的 URL 或 GitHub Gist,然后粘贴该文档的 URL。URL 选项会给你一个可加书签的页面,例如 https://tools.simonwillison.net/markdown-svg-renderer#url=https%3A%2F%2Fgist.github.com%2Fsimonw%2F6f9e48293be5c916652d29f0dc0b0657 - 其中包含了这个 Gist 的 URL。如果你访问 Gist,你会看到原始 SVG:在渲染工具中,它看起来是这样的:如你所见,Markdown 中的那个 SVG 块已被转换为渲染后的 SVG(在这种情况下是动画的)加上几个选项卡。选项卡是真正有趣的部分。PNG 和 JPEG 选项卡在浏览器中将该 SVG 渲染为那些图像格式,并让你复制或下载它们 - 这对于在不直接支持 SVG 的平台上分享很有用。MP4 选项卡是今天新增的 - 它检查 SVG 以查看是否包含任何动画,尝试猜测循环视频应该持续多长时间,然后渲染动画的整批帧,并加载 30 多 MB 的 ffmpeg.wasm,以便它可以使用编译为 WebAssembly 并在浏览器中运行的 FFMPEG 的全部功能将这些帧编译成 MP4 视频。能够将动画 SVG 转换成 MP4 再次使得在原生不支持 SVG 动画的平台上分享变得容易。这是一个巧妙的把戏!

核心信息

Simon Willison 升级了他的 Markdown SVG 渲染工具,新增将动画 SVG 导出为 MP4 视频的功能,方便在不支持 SVG 动画的平台上分享。

  • Simon Willison 升级了他的 Markdown SVG 渲染工具,新增将动画 SVG 导出为 MP4 视频的功能,方便在不支持 SVG 动画的平台上分享。
  • 原贴提到:I started building my markdown-svg-renderer tool in May , but I've since
  • 来源:simonwillison.net
试看内容

成为会员查看完整内容

你已经看到了这篇内容的前置整理,剩余深度部分仅对会员开放。

详细解读 信息差价值 参考来源
成为会员查看完整内容
上一篇 OpenRouter 首版界面回顾引热议 下一篇 Qwen 3.8 27B 表现出色,但默认设置会导致严重过度思考