Skip to main content

Publish markdown to Zhihu

Project description

Usage

pipx install publish-to-zhihu

# convert latex math formula to zhihu format
zhihu_convert_latex to_be_convert.md

# upload a list of images to azure storage container
zhihu_upload_images azure_storage_container_name azure_storage_account_connection_string file_root file_rel_path_0 file_rel_path_1

# Convert standard Markdown file to Zhihu Format and upload all local images
zhihu_prepare_md --container container_name image_link_root output_folder md_file0 md_file1

Setup Dev Environment

First clone this repo then change to the repo directory.

Then run following command:

pip install poetry
poetry install   # Create virtual environement, install all dependencies for the project
poetry shell     # activate the virtual environment
pre-commit install    # to ensure automatically formatting, linting, type checking and testing before every commit

If you want to run unit test manually, just activate virtual environment and run:

pytest

Acknowledgement

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

publish_to_zhihu-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

publish_to_zhihu-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file publish_to_zhihu-0.1.1.tar.gz.

File metadata

  • Download URL: publish_to_zhihu-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.5 Windows/10

File hashes

Hashes for publish_to_zhihu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 28350eccec585db7ee5b0f2a97259637e15e2388351d18d04aa70501a6c35870
MD5 a1a03d810db62dc8cd4f67f7259483bb
BLAKE2b-256 ae0231c0074797ace981d841d33a2005370a22286e849fdc7cb37736c4935cb4

See more details on using hashes here.

File details

Details for the file publish_to_zhihu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: publish_to_zhihu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.5 Windows/10

File hashes

Hashes for publish_to_zhihu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ca734423ce7470f2d387b63c2cee41e3f9bce7f3932554a897a0c678296d4b
MD5 f1c968fa8d7a8733b7b6fb04a1c3cddd
BLAKE2b-256 a06b287525bec9cdac10c39b1c955e1c9665e563f1304bb2ce4d2543a2a6e6be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page