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 -i https://test.pypi.org/simple/ markdown-text-clean==0.8.5

使用方法 (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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: markdown_text_clean-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3f868d86c1fa7a686348bc8de1de59f49f9d8ed44e7453ebbf345023b45fe378
MD5 ddaae655abecb59404767694997c82e5
BLAKE2b-256 bf7c30ad56fc66747fb232cddf3b2b4eb8cfe7924e4662974126c7b7554f0f47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for markdown_text_clean-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3fdaded8ddcda5022014905ea80e3eb82d41e40bcd214f632736dd21516439
MD5 a78c0c98ced28b2acd9754522dd5aabb
BLAKE2b-256 11b768671ed878a65c706d56820e4597306ccb964550524836d7b420af4749e8

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