# 1.Introduction to pyMd2Doc
Use python to convert markdown to a directory document with retractable text content.
# 2. Method of use
This program requires a python environment of python3 or above.
## 2.1 Prepare Markdown file
Prepare the Markdown file that needs to be converted into a document.
## 2.2 Install pyMd2Doc
Install the program using
pip install pyMd2Doc
## 2.3 Start the conversion
### 2.3.1 md file to HTML
> creates [yourFileName].py file to prepare the markdown file that needs to be converted, such as mymarkdown.md
> introduces the required module, calls the function and passes in the markdown file to be converted, as shown in the following example:
from pymd2doc import createDoc
createDoc.create(“myMarkdown”)
The successful execution of > will generate the mymarkdown.html file
### 2.3.2 String md content to HTML
> introduces the required module, calls the function, and passes in the markdown file that needs to be converted
> passes in String md content, as shown in the following example:
from pymd2doc import createDoc
- STR = u’’’
Here is the String md content ‘’’
# param strs passes in the MD string # param myMarkdown definition will generate the name of the HTML file # return myMarkdown.html
createDoc.createByString(strs, “myMarkdown”)
> The successful execution of > will generate the mymarkdown.html file
## 2.4 Check the documentation
Open the mymarkdown.html file you just generated with your browser.
Click the directory to jump to the corresponding document content.
Metadata
Release files for pyMd2Doc 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyMd2Doc-2.0.2.tar.gz | 32.0 kB | Without provenance | Details for pyMd2Doc-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyMd2Doc-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyMd2Doc-2.0.2-py3-none-any.whl |
Total release size: 65.3 kB
Release files / pyMd2Doc-2.0.2.tar.gz
| Download URL | pyMd2Doc-2.0.2.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f01c839645459e82788e37b3d6097db9c363847992ae78af07beac399aa7bb59
|
|
BLAKE2b-256 checksum How to use checksums |
d7e6b66a847e34866c2b8eb8a64b6fb0f2a4fc791e7738a034a72f18a8ba3ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/36.2.7 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Release files / pyMd2Doc-2.0.2-py3-none-any.whl
| Download URL | pyMd2Doc-2.0.2-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e399345c9107c8a0d62687637ae88dbe21650dd722e049adbf1526a85574868
|
|
BLAKE2b-256 checksum How to use checksums |
2a91052b71c1148afe21d7486685a80dded8ea925f301010b399f04803859679
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/36.2.7 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Security for pyMd2Doc 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.