# markdown-python **Repository Path**: sdk-apis/markdown-python ## Basic Information - **Project Name**: markdown-python - **Description**: 修复mkdocs tex - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-25 - **Last Updated**: 2024-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [Python-Markdown][] =================== ## 安装方式 手动替换代码, 直接安装无法替换。可能原因, - pip install mkdocs安装的时候,指定的目录 - 本地手动Python install 指定的目录 这两个目录是不一样的,且import 有优先级。 获取替换的路径 ```python3 markdown.__path__ ``` ```bash python3 -c "import markdown ; print(markdown.__path__) " ``` 得到 ``` /home/emery/.local/lib/python3.6/site-packages/markdown ``` ## 说明 [![Build Status][build-button]][build] [![Coverage Status][codecov-button]][codecov] [![Latest Version][mdversion-button]][md-pypi] [![Python Versions][pyversion-button]][md-pypi] [![BSD License][bsdlicense-button]][bsdlicense] [![Code of Conduct][codeofconduct-button]][Code of Conduct] [build-button]: https://github.com/Python-Markdown/markdown/workflows/CI/badge.svg?event=push [build]: https://github.com/Python-Markdown/markdown/actions?query=workflow%3ACI+event%3Apush [codecov-button]: https://codecov.io/gh/Python-Markdown/markdown/branch/master/graph/badge.svg [codecov]: https://codecov.io/gh/Python-Markdown/markdown [mdversion-button]: https://img.shields.io/pypi/v/Markdown.svg [md-pypi]: https://pypi.org/project/Markdown/ [pyversion-button]: https://img.shields.io/pypi/pyversions/Markdown.svg [bsdlicense-button]: https://img.shields.io/badge/license-BSD-yellow.svg [bsdlicense]: https://opensource.org/licenses/BSD-3-Clause [codeofconduct-button]: https://img.shields.io/badge/code%20of%20conduct-contributor%20covenant-green.svg?style=flat-square [Code of Conduct]: https://github.com/Python-Markdown/markdown/blob/master/CODE_OF_CONDUCT.md This is a Python implementation of John Gruber's [Markdown][]. It is almost completely compliant with the reference implementation, though there are a few known issues. See [Features][] for information on what exactly is supported and what is not. Additional features are supported by the [Available Extensions][]. [Python-Markdown]: https://Python-Markdown.github.io/ [Markdown]: https://daringfireball.net/projects/markdown/ [Features]: https://Python-Markdown.github.io#Features [Available Extensions]: https://Python-Markdown.github.io/extensions Documentation ------------- ```bash pip install markdown ``` ```python import markdown html = markdown.markdown(your_text_string) ``` For more advanced [installation] and [usage] documentation, see the `docs/` directory of the distribution or the project website at . [installation]: https://python-markdown.github.io/install/ [usage]: https://python-markdown.github.io/reference/ See the change log at . Support ------- You may report bugs, ask for help, and discuss various other issues on the [bug tracker][]. [bug tracker]: https://github.com/Python-Markdown/markdown/issues Code of Conduct --------------- Everyone interacting in the Python-Markdown project's codebases, issue trackers, and mailing lists is expected to follow the [Code of Conduct].