docstring-to-markdown
توضیحات
On the fly conversion of Python docstrings to markdown
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | docstring-to-markdown-0.9 |
| نام | docstring-to-markdown |
| نسخه کتابخانه | 0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michał Krassowski |
| ایمیل نویسنده | krassowski.michal+pypi@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/docstring-to-markdown/ |
| مجوز | LGPL-2.1-or-later |
# docstring-to-markdown
[](https://github.com/python-lsp/docstring-to-markdown/actions?query=workflow%3A%22tests%22)

[](https://python.org/pypi/docstring-to-markdown)
On the fly conversion of Python docstrings to markdown
- Python 3.7+ (tested on 3.8 up to 3.13)
- can recognise reStructuredText and convert multiple of its features to Markdown
- since v0.13 includes initial support for Google-formatted docstrings
### Installation
```bash
pip install docstring-to-markdown
```
### Example
Convert reStructuredText:
```python
>>> import docstring_to_markdown
>>> docstring_to_markdown.convert(':math:`\\sum`')
'$\\sum$'
```
When given the format cannot be recognised an exception will be raised:
```python
>>> docstring_to_markdown.convert('\\sum')
Traceback (most recent call last):
raise UnknownFormatError()
docstring_to_markdown.UnknownFormatError
```
### Extensibility
`docstring_to_markdown` entry point group allows to add custom converters which follow the `Converter` protocol.
The built-in converters can be customized by providing entry point with matching name.
### Development
```bash
pip install -e .
pytest
```
نیازمندی
| مقدار | نام |
|---|---|
| - | importlib-metadata>=3.6 |
| - | typing_extensions>=4.6 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl docstring-to-markdown-0.9:
pip install docstring-to-markdown.whl
نصب پکیج tar.gz docstring-to-markdown-0.9:
pip install docstring-to-markdown.tar.gz