A package to clean markdown text
Project description
概要 (Overview)
markdown-text-clean is a Python library that cleans up text by removing Markdown formatting such as bold, italic, inline code, and strikethrough.
markdown-text-cleanは、太字、斜体、インラインコード、取り消し線などのマークダウン書式を削除してテキストをきれいにするPythonライブラリです。
インストール (Installation)
pip install markdown-text-clean
使用方法 (Usage)
This library takes copied Markdown-formatted text and removes Markdown symbols (e.g., ###
, **
) to convert it into a more readable document format. You can use this function to convert copied Markdown-formatted text to document format. For example:
このライブラリは、コピーしたマークダウン形式のテキストを受け取り、そのテキスト内のMarkdown形式の記号(例:###
, **
)を除去して、より読みやすいドキュメント形式に変換します。この関数を使って、コピーしたMarkdown形式のテキストをドキュメント形式に変換できます。
from markdown_text_clean import clean_text
text = """### This is **bold** and *italic* text with `inline code` and ~~strikethrough~~."""
cleaned_text = text_clean(text)
print(cleaned_text)
This will result in the following output:
これにより、次のような出力が得られます:
This is bold and italic text with inline code and strikethrough.
In this way, you can convert Markdown-formatted text into a concise and readable document format.
このように、Markdown形式のテキストを簡潔で読みやすいドキュメント形式に変換できます。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file markdown_text_clean-1.0.1.tar.gz
.
File metadata
- Download URL: markdown_text_clean-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e385931e23a76fd43e68ad07185316b71b9f4d0196fccb7bde3ff221700bf11 |
|
MD5 | 17ddf3fc95e455e074c3dc7a1b9b1518 |
|
BLAKE2b-256 | 36f88d0ff4676da5fbdfcd74d14fc04bd8f65f3fbdf6978f313a5890f1236145 |
File details
Details for the file markdown_text_clean-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: markdown_text_clean-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 367cac89e2007e16083910a58206a8cf8e8ee2be8f7aaa6b5c133d058e7fdf40 |
|
MD5 | 663dd7a5bc4afeddbf4bf26171603a3a |
|
BLAKE2b-256 | 2b1e756bb2d258f04ca517f1ceae6d47f7fd46ba9321768b3a59823dbf59f11e |