
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@shogobg/markdown2confluence
Advanced tools
This tool converts Markdown to Confluence Wiki Markup.
Using Markdown is fast becoming a standard for open-source projects and their documentation. There are a few variants, such as [GitHub Flavored Markdown], which add additional features.
Atlassian's Confluence has a different way of writing documentation, according to their Confluence Wiki Markup and later pages and references.
This project contains a library and a command-line tool that bridges the gap and converts from Markdown to Confluence.
npm i -g @shogobg/markdown2confluence
npm i --save @shogobg/markdown2confluence
Use it to convert a markdown file.
markdown2confluence README.md
Or pipe in a file.
cat README.md | markdown2confluence
markdown2confluence <path/to/markdown.md> <path/to/output.txt>
Or just edit your application package.json
and add the following code to your dependencies
object:
{
...
"dependencies": {
...
"@shogobg/markdown2confluence": "*"
...
}
...
}
Now you write some JavaScript to load Markdown content and convert.
markdown2confluence = require("@shogobg/markdown2confluence");
markdown = fs.readFileSync("README.md");
confluence = markdown2confluence(markdown);
console.log(confluence);
This uses the wonderful marked library to parse and reformat the Markdown text.
The aim of this library is to convert as much Markdown to Confluence Wiki Markup. As such, most Markdown is supported but there are going to be rare cases that are not supported (such as code blocks within lists) or other scenarios that people find.
If it is possible to convert the Markdown to Confluence Wiki Markup (without resorting to HTML), then this library should be able to do it. If you find anything wrong, it is likely a bug and should be reported. I would need a sample of Markdown, the incorrect translation and the correct way to represent that in Confluence. Please file an issue with this information in order to help replicate and fix the issue.
A good demonstration chunk of markdown is available in demo.md.
What does not work?
This tool was originally written by chunpu, but it was outdated with latest version from 2017. It didn't suit my needs to convert Markdown generated by widdershins, so i decided to update it and publish the changes. Shamelessly copied improvements from fdian.
FAQs
Convert Markdown to Confluence markup
The npm package @shogobg/markdown2confluence receives a total of 37,832 weekly downloads. As such, @shogobg/markdown2confluence popularity was classified as popular.
We found that @shogobg/markdown2confluence demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.