strip-markdown-1.3
توضیحات
Converts markdown to plain text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | strip-markdown-1.3 |
| نام | strip-markdown |
| نسخه کتابخانه | 1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Derek Henderson |
| ایمیل نویسنده | derekhenderson818@gmail.com |
| آدرس صفحه اصلی | https://github.com/D3r3k23/strip_markdown |
| آدرس اینترنتی | https://pypi.org/project/strip-markdown/ |
| مجوز | MIT License |
# strip_markdown
[](https://pypi.org/project/strip_markdown)
[](https://github.com/D3r3k23/strip_markdown/actions/workflows/ci.yaml)
#### Converts markdown to plain text, including both a command line interface and importable library
## Example
### Markdown
---
# Title
## Section
This is a line of text
**Bold text**
---
### Markdown source
---
```
# Title
## Section
This is a line of text
**Bold text**
```
---
### Text
---
```
Title
Section
This is a line of text
Bold text
```
---
## Installation
`$ pip install strip_markdown`
## Usage
### Command line
`$ python -m strip_markdown MD_fn [TXT_fn]`
### Library
```python
>>> import strip_markdown
>>>
>>> TXT: str = strip_markdown.strip_markdown(MD: str)
>>> strip_markdown.strip_markdown_file(MD_fn: str, TXT_fn: Optional[str])
```
* `TXT_fn` is optional: default is `<MD_fn>.md -> <MD_fn>.txt`
* If `TXT_fn` is a directory, `<MD_fn>.txt` is placed in that directory
نیازمندی
| مقدار | نام |
|---|---|
| - | markdown |
| - | beautifulsoup4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl strip-markdown-1.3:
pip install strip-markdown-1.3.whl
نصب پکیج tar.gz strip-markdown-1.3:
pip install strip-markdown-1.3.tar.gz