nonebot-plugin-htmlrender 通过浏览器渲染图片 可通过查看example参考使用实例 如果有安装浏览器等问题,先查看文档最底下的常见问题再去看 issue 有没有已经存在的 ✨ 功能 通过html 和浏览器生成图片 支持纯文本 markdown 和jinja2 模板输入 通过CSS 来控制样式 使用 参考example/plugins/render/init.py 配置 # ...
import io from nonebot_plugin_htmlrender import ( text_to_pic, md_to_pic, template_to_pic, get_new_page, ) from nonebot import on_command from nonebot.adapters.onebot.v11 import Bot, MessageEvent, MessageSegment from PIL import Image # 纯文本转图片 text2pic = on_command("text2pic")...
通过浏览器渲染图片. Latest version: 1.2.0, last published: 2 years ago. Start using @nonebot/koishi-plugin-htmlrender in your project by running `npm i @nonebot/koishi-plugin-htmlrender`. There are no other projects in the npm registry using @nonebot/koi
import asyncio config = get_plugin_config(Config)10 changes: 5 additions & 5 deletions 10 nonebot_plugin_htmlrender/data_source.py Original file line numberDiff line numberDiff line change @@ -1,6 +1,6 @@ from os import getcwd from pathlib import Path from typing import Literal, Opti...
好康! 又好用!(可能). Contribute to kexue-z/nonebot-plugin-htmlrender development by creating an account on GitHub.
通过html 和浏览器生成图片 支持纯文本markdown和jinja2模板输入 通过CSS 来控制样式 使用 参考example/plugins/render/init.py fromnonebotimportrequirerequire("nonebot_plugin_htmlrender")# 注意顺序,先require再 from ... import ...# 注意顺序,先require再 from ... import ...# 注意顺序,先require再 from...