sphinx_mdinclude-0.6.2
توضیحات
Markdown extension for Sphinx
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | sphinx_mdinclude-0.6.2 |
| نام | sphinx_mdinclude |
| نسخه کتابخانه | 0.6.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Amethyst Reese <amy@noswap.com>'] |
| نویسنده | - |
| ایمیل نویسنده | Hiroyuki Takagi <miyako.dev@gmail.com>, CrossNox <ijmermet+m2r2@gmail.com>, Amethyst Reese <amy@noswap.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/sphinx_mdinclude/ |
| مجوز | - |
sphinx-mdinclude
================
Sphinx extension for including or writing pages in Markdown format.
[](https://pypi.python.org/pypi/sphinx-mdinclude)
[](https://sphinx-mdinclude.readthedocs.io)
[](https://sphinx-mdinclude.omnilidb.dev/en/latest/changelog.html)
[](https://github.com/omnilib/sphinx-mdinclude/blob/main/LICENSE)
sphinx-mdinclude is a simple Sphinx extension that enables including Markdown documents
from within reStructuredText. It provides the `.. mdinclude::` directive, and
automatically converts the content of Markdown documents to reStructuredText format.
sphinx-mdinclude is a fork of [m2r](https://github.com/miyakogi/m2r) and
[m2r2](https://github.com/crossnox/m2r2), focused only on providing a Sphinx extension.
## Features
* Basic markdown and some extensions (see below)
* inline/block-level raw html
* fenced-code block
* tables
* footnotes (``[^1]``)
* Inline- and Block-level rst markups
* single- and multi-line directives (`.. directive::`)
* inline-roles (``:code:`print(1)` ...``)
* ref-link (``see `ref`_``)
* footnotes (``[#fn]_``)
* math extension inspired by [recommonmark](https://recommonmark.readthedocs.io/en/latest/index.html)
* Sphinx extension
* add markdown support for sphinx
* ``mdinclude`` directive to include markdown from md or rst files
* option to parse relative links into ref and doc directives (``md_parse_relative_links``)
## Restrictions
* In the rst's directives, markdown is not available. Please write in rst.
* Column alignment of tables is not supported. (rst does not support this feature)
* Heading with overline-and-underline is not supported.
* Heading with underline is OK
* Rst heading marks are currently hard-coded and unchangeable.
* H1: `=`, H2: `-`, H3: `^`, H4: `~`, H5: `"`, H6: `#`
## Installation
Python 3.6 or newer is required.
```
pip install sphinx-mdinclude
```
## Usage
In your Sphinx `conf.py`, add the following lines:
```python
extensions = [
...,
'sphinx_mdinclude',
]
```
Markdown files with the `.md` extension will be loaded and used by Sphinx, similar to
any other `.rst` files.
To include Markdown files within other files, use the `.. mdinclude:: <filename>`
directive. This applies the conversion from Markdown to reStructuredText format.
## License
`sphinx-mdinclude` is copyright Hiroyuki Takagi, CrossNox, and [Amethyst Reese][],
and licensed under the MIT license. I am providing code in this repository to you
under an open source license. This is my personal repository; the license you receive
to my code is from me and not from my employer. See the [LICENSE][] file for details.
[Amethyst Reese]: https://noswap.com
[LICENSE]: https://github.com/omnilib/sphinx-mdinclude/blob/main/LICENSE
نیازمندی
| مقدار | نام |
|---|---|
| - | mistune<4.0,>=3.0 |
| - | docutils<1.0,>=0.19 |
| - | pygments>=2.8 |
| - | sphinx>=6 |
| xtr | docutils==0.20.1; |
| xtr | docutils==0.21.2; |
| xtr | mistune==3.0.2; |
| xtr | attribution==1.7.1; |
| xtr | black==24.4.2; |
| xtr | coverage==7.5.1; |
| xtr | flake8==7.0.0; |
| xtr | flit==3.9.0; |
| xtr | mypy==1.10.0; |
| xtr | sphinx==7.1.2; |
| xtr | sphinx==7.3.7; |
| xtr | ufmt==2.5.1; |
| xtr | usort==1.0.8.post1; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl sphinx_mdinclude-0.6.2:
pip install sphinx_mdinclude-0.6.2.whl
نصب پکیج tar.gz sphinx_mdinclude-0.6.2:
pip install sphinx_mdinclude-0.6.2.tar.gz