Skip to main content

markdown2slack is converter markdown to slack format

Project description

Markdown to Slack Format Conversion Tool

This tool was developed to simplify the conversion of Markdown text to the format accepted by Slack. By using this tool, you can complement the Slack API and easily send formatted messages to channels, groups, and direct conversations on Slack, leveraging the platform's unique formatting.

Features

Automatic Conversion: Automatically converts Markdown text to Slack format.

How to use

  1. Install the library:

    pip install markdown2slack
    
  2. Import the library and create an instance in your code:

    from markdown2slack.app import Convert
    
    converter = Convert()
    
  3. Convert the Markdown text to Slack format:

    markdown_text = """
    # Heading
    **Bold text**
    *Italic text*
    [Link](https://example.com)
    """
    slack_text = converter.markdown_to_slack_format(markdown_text)
    print(slack_text)
    

Example

Before

**Bold text**
*Italic text*
[Link](https://example.com)

After

*Bold text*
_Italic text_
<https://example.com|Link>

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

markdown2slack-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

markdown2slack-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file markdown2slack-0.1.0.tar.gz.

File metadata

  • Download URL: markdown2slack-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.5.0

File hashes

Hashes for markdown2slack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e5e86ce2d11c88913daaa657da993c0fbed80a74cf23f39b0d05f046b676d25
MD5 64381b415a77f175c3d7a0e8f86b73e7
BLAKE2b-256 550494920a1ff4d730ba79190a8b4f0f4af94c88aa7f2f16fea02f6ad060cd38

See more details on using hashes here.

File details

Details for the file markdown2slack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: markdown2slack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.5.0

File hashes

Hashes for markdown2slack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c062b737e75c9ee66d93d65afa2a973d746dc06dbe4b489baeec2200e45631b
MD5 f17bba712d9999f77b54af0cd018cdc9
BLAKE2b-256 a348652ac589cc166aacbb03dc339a358776a6c921873c32b25c7bd244dd8185

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