node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Convert Confluence (3.5 and earlier) markup to Markdown.


$ npm install -g confluence2markdown
$ c2m < confluence.txt >

What it handles:

  • {code} and {noformat} blocks
  • Lists (bullets and numbers)
  • {{monospace}}
  • Tables (some weird cases don't work)
  • Paired macros (note, info, writersnote, etc) These a rendered as HTML DIVs
  • Links & Images Pass either 'md' or 'kirby' to constructor to specify flavor of links.

Still to do:

  • Anchors for headings
  • TOC generation


This converter uses a fork of Florent Jaby's node-tokenizer.