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.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

markdown_text_clean-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: markdown_text_clean-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 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.2.tar.gz
Algorithm Hash digest
SHA256 19cf5c9d79b9a13256b3d4e570e14a6449b790ba33a7bfe72dd5248b221eb901
MD5 9d4a2678d99b5d2408a6b4720aef2c2b
BLAKE2b-256 5aa1918564d83c5cbfdc8cb03f59039dfd48f56a7b3bcc6190cc155c9baa96e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for markdown_text_clean-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1240dfc361a97babc9a20ab66f9e0e69a2ebc3fbbf5d22d46005c37f6ef6d83c
MD5 0f33c4851ca17e3b6999256a7355acbe
BLAKE2b-256 8e13a8cc3a3be8a650eeca2ac701f884922f928b35975b7e1cd9a18fe018ca93

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