
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
confluence-markdown-exporter-advanced
Advanced tools
The confluence-markdown-exporter exports Confluence pages in Markdown format. This exporter helps in migrating content from Confluence to platforms that support Markdown e.g. Obsidian, Gollum, Azure DevOps, Foam, Dendron and more.
To use the confluence-markdown-exporter, follow these steps:
Install python package via pip.
pip install confluence-markdown-exporter-advanced
You must set environment variables for one of the following authentication options:
Username + API Token
ATLASSIAN_USERNAME
: Your Atlassian account email addressATLASSIAN_API_TOKEN
: An API token created atPersonal Access Token (PAT)
ATLASSIAN_PAT
: A Personal Access Token (used instead of username+token)In all cases, you must also set:
ATLASSIAN_URL
: Your Atlassian instance URL (e.g. https://company.atlassian.net
)Here an example setting the environment variables for the Username + API Token authentication for the current terminal session.
export ATLASSIAN_USERNAME="work mail address"
export ATLASSIAN_API_TOKEN="API token Test"
export ATLASSIAN_URL="https://company.atlassian.net"
Run the exporter with the desired Confluence page ID/URL or space key.
Export a single Confluence page by URL:
confluence-markdown-exporter page-url <page-url e.g. https://company.atlassian.net/Wiki/foo/bar> <output path e.g. ./output_path/>
Export a single Confluence page by id:
confluence-markdown-exporter page-id <page-id e.g. 645208921> <output path e.g. ./output_path/>
Export a Confluence page and all it's descendants:
confluence-markdown-exporter page-with-descendants <page-id e.g. 645208921> <output path e.g. ./output_path/>
Export all Confluence pages of a single Space:
confluence-markdown-exporter space <space-key e.g. MYSPACE> <output path e.g. ./output_path/>
Export all Confluence pages across all spaces:
confluence-markdown-exporter all-spaces <output path e.g. ./output_path/>
[!TIP] Instead of
confluence-markdown-exporter
you can also use the shorthandcf-export
.
The exported Markdown file(s) will be saved in the specified output
directory e.g.:
output_path/
└── MYSPACE/
├── MYSPACE.md
└── MYSPACE/
├── My Confluence Page.md
└── My Confluence Page/
├── My nested Confluence Page.md
└── Another one.md
By default the converter uses a GitHub Flavored Markdown (GFM). You can also choose an Obsidian flavored markdown by setting:
export MARKDOWN_STYLE="Obsidian"
Via PAGE_PATH
and ATTACHMENT_PATH
you can customize how pages and attachments are organized in the output directory.
By default, pages are stored at:
export PAGE_PATH="{space_name}/{homepage_title}/{ancestor_titles}/{page_title}.md"
Available variables:
{space_key}
: The key of the Confluence space.{space_name}
: The name of the Confluence space.{homepage_id}
: The ID of the homepage of the Confluence space.{homepage_title}
: The title of the homepage of the Confluence space.{ancestor_ids}
: A slash-separated list of ancestor page IDs.{ancestor_titles}
: A slash-separated list of ancestor page titles.{page_id}
: The unique ID of the Confluence page.{page_title}
: The title of the Confluence page.By default, attachments are stored at:
export ATTACHMENT_PATH="{space_name}/attachments/{attachment_file_id}{attachment_extension}"
Available variables:
{space_key}
: The key of the Confluence space.{space_name}
: The name of the Confluence space.{homepage_id}
: The ID of the homepage of the Confluence space.{homepage_title}
: The title of the homepage of the Confluence space.{ancestor_ids}
: A slash-separated list of ancestor page IDs.{ancestor_titles}
: A slash-separated list of ancestor page titles.{attachment_id}
: The unique ID of the attachment.{attachment_title}
: The title of the attachment.{attachment_file_id}
: The file ID of the attachment.{attachment_extension}
: The file extension of the attachment, including the leading dot.If you would like to contribute, please read our contribution guideline.
This tool is an open source project released under the MIT License.
FAQs
A tool to export Confluence pages to Markdown
We found that confluence-markdown-exporter-advanced demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.