Skip to main content

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形式の記号(例:###, **)を除去して、より読みやすいドキュメント形式に変換します。

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

markdown_text_clean-1.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

markdown_text_clean-1.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file markdown_text_clean-1.0.3.tar.gz.

File metadata

  • Download URL: markdown_text_clean-1.0.3.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

Hashes for markdown_text_clean-1.0.3.tar.gz
Algorithm Hash digest
SHA256 617ddaf9fef6eadf22c4e66e5c34c86837e19b6ec4bb83ebf475790d4506d6ec
MD5 aec75c94fb156678e9b82bf0ca68272f
BLAKE2b-256 3ecfd0f80757bb6c893e9e3766b54562852c420d3f74eafbd01b42a609039773

See more details on using hashes here.

File details

Details for the file markdown_text_clean-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for markdown_text_clean-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f887510b4f12b5249a54a900570a1c7ac77841afaff1719de81c803f9c175a3
MD5 83c084027bf38f1584c94463aea44700
BLAKE2b-256 d7be68d29bea8f9da12a0d7c74888a8aa53bf0c98a8e1160d0d7be325d92efaf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page