通过html 和浏览器生成图片 支持纯文本markdown和jinja2模板输入 通过CSS 来控制样式 使用 参考example/plugins/render/init.py fromnonebotimportrequirerequire("nonebot_plugin_htmlrender")# 注意顺序,先require再 from ... import ...# 注意顺序,先require再 from ... import ...# 注意顺序,先require再 from...
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: a year 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/kois
fromnonebot.typingimportT_State require("nonebot_plugin_htmlrender") # from nonebot_plugin_imageutils import Text2Image fromnonebot_plugin_htmlrenderimport( text_to_pic, #text_to_pic, md_to_pic, template_to_pic, get_new_page, #template_to_pic, ...
好康! 又好用!(可能). Contribute to nonebotjs/nonebot-plugin-htmlrender development by creating an account on GitHub.
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.