Skip to main content

Markdown to Slack Format Conversion Tool

CI PyPI version

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>

Metadata

Release files for markdown2slack 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markdown2slack 0.2.0
File Size Uploaded
markdown2slack-0.2.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markdown2slack 0.2.0
File Interpreter ABI Platform
markdown2slack-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / markdown2slack-0.2.0.tar.gz

Download URL markdown2slack-0.2.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
26e199b4a3b1ed5c0dc0eee956a137adc185afdf182e7dabe7fce016765ebab4
BLAKE2b-256 checksum
How to use checksums
7a7bf718df5f7cf049d385f69b67b0295500fcd1f37786d0bdac7c1fb670873b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/23.5.0

Release files / markdown2slack-0.2.0-py3-none-any.whl

Download URL markdown2slack-0.2.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
359d420c3d60cd13fd48511539199b433c473f409c451006b7cb8941a27ba391
BLAKE2b-256 checksum
How to use checksums
6e3638ec1c616402bc8400ced49e64ae94bfa22199b30a29c41f4ab51a6c01bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page