Skip to main content

Convert to Confluence Wiki Formate

Overview

The convert_to_confluence_wiki package is a utility for converting Markdown text into a format compatible with Atlassian Confluence. It handles the transformation of various Markdown elements into their Confluence equivalents, making it easier to migrate or integrate content into Confluence pages.

Features

  • Converts headers (#, ##, etc.) into Confluence headers and panels.
  • Transforms code blocks and inline code into Confluence code macros.
  • Processes nested and numbered lists for proper indentation and syntax.
  • Converts bold, italic, and strikethrough text.
  • Replaces Markdown-style links and images with Confluence-compatible formats.
  • Handles tables, blockquotes, and horizontal rules.
  • Provides support for Confluence-specific macros like notes and warnings.
  • Ensures clean and well-structured formatting by removing unnecessary empty lines.

Requirements

  • Python 3.6+

Usage

  1. Place the convert_to_confluence.py script in your project directory.
  2. Import the markdown_to_confluence function into your Python script:
from .convert_to_confluence import MarkdownToConfluenceConverter
  1. Pass your Markdown text to the function:
markdown_text = """
# Sample Header

This is a **bold text** and this is _italic text_.

- Item 1
  - Sub-item 1.1

```python
print("Hello, World!")
# add stoping statement also(i.e. ```)

"""

converter = MarkdownToConfluenceConverter(markdown_text)
confluence_text = converter.convert()
print(confluence_text)
  1. The output will be formatted for Confluence.

Example Output

Input Markdown:

# Header 1

This is **bold** and _italic_ text.

- Item 1
  - Sub-item 1.1

#Added as comment for readme ```
python
print("Hello, World!")
#Added as comment for readme ```

![Alt Text](image.png)

Converted Confluence Markup:

h1. Header 1

This is *bold* and _italic_ text.

* Item 1
** Sub-item 1.1

{code:language=python|theme=Midnight}
print("Hello, World!")
{code}

!image.png|alt=Alt Text!

Limitations

  • Custom Markdown extensions or non-standard syntax may not be fully supported.
  • The script assumes well-formed Markdown input; malformed Markdown may lead to unexpected results.

License

This script is open-source and can be modified as needed for personal or commercial use.

Contributing

Contributions are welcome! Feel free to submit pull requests or open issues for bugs or feature requests.

Contact

Email: aryamangurjar6@gmail.com

Github: https://github.com/AryamanGurjar

Linkedin: https://www.linkedin.com/in/aryaman-gurjar-251ab2201/

Metadata

Release files for convert-to-confluence 1.0.1

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

Source distribution (sdist)

Source distribution for convert-to-confluence 1.0.1
File Size Uploaded Provenance
convert_to_confluence-1.0.1.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for convert-to-confluence 1.0.1
File Interpreter ABI Platform
convert_to_confluence-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / convert_to_confluence-1.0.1.tar.gz

Download URL convert_to_confluence-1.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2046b5a4c3913cda9c63f90dfb55a6c1e47c26b3e938ede3d42f11aacdc8e05d
BLAKE2b-256 checksum
How to use checksums
1b3e113de35386a669184325d7b2cf68db842208a30e625bdb27de221266d32e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / convert_to_confluence-1.0.1-py3-none-any.whl

Download URL convert_to_confluence-1.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84c1d3af3253f4e5fa4e13dc17aa9e834c5cea26c8dcb28e746dc77738b14f5d
BLAKE2b-256 checksum
How to use checksums
b6860bb7c35fdca9ff35ce5fec3b63dccaa9dcf8ed585d2b2afad4cbff8618aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for convert-to-confluence 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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