npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@axw_/koishi-plugin-markdown-to-image-service

v0.1.0

Published

一个功能强大的 Markdown 转图片服务,支持丰富的语法和主题,并能处理来自 NapCat 等适配器的文件上传。

Downloads

150

Readme

@axw_/koishi-plugin-markdown-to-image-service

npm

简介

Koishi 的 Markdown 转图片服务插件。支持 LaTeX、Mermaid、代码高亮等丰富的 Markdown 语法。

版本说明

本插件是 araea/koishi-plugin-markdown-to-image-service 的一个分叉版本。

在原插件的强大功能基础上,本版本进行了修改和增强,主要增加了以下功能。

新增功能

  • 文件直接上传渲染: 无需使用指令,在聊天中向机器人直接发送 .md 文件即可自动触发渲染并返回图片。
  • 强大的兼容性: 内置了对 NapCat 适配器的特殊文件处理逻辑,使其能够正确接收和处理上传的文件。
  • 专为 Docker/WSL 设计的路径映射: 通过简单的配置,完美解决 Koishi 与 OneBot 客户端(如 NapCat)在不同环境(例如 Windows 主机 + Docker 容器)下部署时的文件路径不匹配问题。

使用方式

  1. 直接上传文件 (推荐): 在任意聊天窗口向机器人发送一个 .md 文件。
  2. 使用指令: 在聊天中发送 markdown <你的MD文本> 来转换纯文本内容。

插件配置

除了原有的多种渲染和主题配置外,本插件特别增加了以下用于处理文件上传的配置项:

跨环境路径映射设置 (Docker/WSL 用户必读)

如果您的 Koishi 和 OneBot 客户端(如 NapCat)不在同一个操作系统环境,您必须配置此项。

  • containerPathPrefix

    • 作用: OneBot 客户端(NapCat)所在的容器或环境提供的文件路径前缀。
    • 示例: 根据我们的调试日志,您这里应填 /app/.config/QQ/NapCat/temp
  • hostPathPrefix

    • 作用: 与上述容器内路径相对应的、Koishi 所在主机或容器可以访问的路径前缀。
    • 示例: D:\koishi-data\napcat-files (请确保此路径已通过 Docker/WSL 的数据卷正确挂载)

致谢

License

MIT License © 2024