├── .dockerignore ├── .github └── workflows │ ├── _test-os-arch.yml │ ├── codecov.yml │ ├── docker_image.yml │ └── publish.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .python-version ├── LICENSE ├── README.md ├── docker-compose.yaml ├── dockerfile ├── docs ├── example.md ├── html2pic.png ├── md2pic.png ├── template2pic.png └── text2pic.png ├── entrypoint.sh ├── example ├── .env ├── docker-compose.yaml ├── entrypoint.sh ├── plugins │ └── render │ │ ├── __init__.py │ │ ├── html2pic.html │ │ ├── templates │ │ ├── markdown.css │ │ ├── mystyle.css │ │ ├── progress.html.jinja2 │ │ └── text.html │ │ └── utils.py └── pyproject.toml ├── nonebot_plugin_htmlrender ├── __init__.py ├── browser.py ├── config.py ├── consts.py ├── data_source.py ├── install.py ├── process.py ├── signal.py ├── templates │ ├── github-markdown-light.css │ ├── katex │ │ ├── katex.min.b64_fonts.css │ │ ├── katex.min.js │ │ ├── mathtex-script-type.min.js │ │ └── mhchem.min.js │ ├── markdown.html │ ├── pygments-default.css │ ├── text.css │ └── text.html └── utils.py ├── pyproject.toml ├── tests ├── __init__.py ├── conftest.py ├── resources │ └── test_template_filter.png ├── templates │ ├── markdown.css │ ├── mystyle.css │ ├── progress.html.jinja2 │ └── text.html ├── test_browser.py ├── test_deprecated_decorator.py ├── test_htmlrender.py ├── test_install.py └── test_process.py └── uv.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/workflows/_test-os-arch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.github/workflows/_test-os-arch.yml -------------------------------------------------------------------------------- /.github/workflows/codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.github/workflows/codecov.yml -------------------------------------------------------------------------------- /.github/workflows/docker_image.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.github/workflows/docker_image.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.12 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/dockerfile -------------------------------------------------------------------------------- /docs/example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docs/example.md -------------------------------------------------------------------------------- /docs/html2pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docs/html2pic.png -------------------------------------------------------------------------------- /docs/md2pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docs/md2pic.png -------------------------------------------------------------------------------- /docs/template2pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docs/template2pic.png -------------------------------------------------------------------------------- /docs/text2pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/docs/text2pic.png -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/entrypoint.sh -------------------------------------------------------------------------------- /example/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/.env -------------------------------------------------------------------------------- /example/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | ../docker-compose.yaml -------------------------------------------------------------------------------- /example/entrypoint.sh: -------------------------------------------------------------------------------- 1 | ../entrypoint.sh -------------------------------------------------------------------------------- /example/plugins/render/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/__init__.py -------------------------------------------------------------------------------- /example/plugins/render/html2pic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/html2pic.html -------------------------------------------------------------------------------- /example/plugins/render/templates/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/templates/markdown.css -------------------------------------------------------------------------------- /example/plugins/render/templates/mystyle.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/templates/mystyle.css -------------------------------------------------------------------------------- /example/plugins/render/templates/progress.html.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/templates/progress.html.jinja2 -------------------------------------------------------------------------------- /example/plugins/render/templates/text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/templates/text.html -------------------------------------------------------------------------------- /example/plugins/render/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/plugins/render/utils.py -------------------------------------------------------------------------------- /example/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/example/pyproject.toml -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/__init__.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/browser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/browser.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/config.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/consts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/consts.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/data_source.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/data_source.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/install.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/install.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/process.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/signal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/signal.py -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/github-markdown-light.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/github-markdown-light.css -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/katex/katex.min.b64_fonts.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/katex/katex.min.b64_fonts.css -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/katex/katex.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/katex/katex.min.js -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/katex/mathtex-script-type.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/katex/mathtex-script-type.min.js -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/katex/mhchem.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/katex/mhchem.min.js -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/markdown.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/markdown.html -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/pygments-default.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/pygments-default.css -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/text.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/text.css -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/templates/text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/templates/text.html -------------------------------------------------------------------------------- /nonebot_plugin_htmlrender/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/nonebot_plugin_htmlrender/utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/resources/test_template_filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/resources/test_template_filter.png -------------------------------------------------------------------------------- /tests/templates/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/templates/markdown.css -------------------------------------------------------------------------------- /tests/templates/mystyle.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/templates/mystyle.css -------------------------------------------------------------------------------- /tests/templates/progress.html.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/templates/progress.html.jinja2 -------------------------------------------------------------------------------- /tests/templates/text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/templates/text.html -------------------------------------------------------------------------------- /tests/test_browser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/test_browser.py -------------------------------------------------------------------------------- /tests/test_deprecated_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/test_deprecated_decorator.py -------------------------------------------------------------------------------- /tests/test_htmlrender.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/test_htmlrender.py -------------------------------------------------------------------------------- /tests/test_install.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/test_install.py -------------------------------------------------------------------------------- /tests/test_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/tests/test_process.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kexue-z/nonebot-plugin-htmlrender/HEAD/uv.lock --------------------------------------------------------------------------------