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

Uploaded Source

Built Distribution

markdown2slack-0.1.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: markdown2slack-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b534f7c0ea5c45233593bbeb0a25b09a58ceb94b61b10e4f0dcb9652adfa0b7e
MD5 a96b9bd42be396770e55c1a136e26342
BLAKE2b-256 f335fae1b7373cf4f968ce97add2756d0e1ed5021b8ed7a7f0bdd4ed3e3909c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: markdown2slack-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d5ab91c47b374719220d4237ddeb60da9b2f59c0a58a1d14d8aa6e6ffe2970
MD5 c84b18a8bc7c4882341f88c39624c39a
BLAKE2b-256 019f49da0e29852dc1149e3c0462916cd9b98aee42b004f06cae6dd21c3fd9e2

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