Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 723 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 723 Bytes

confluence2markdown

Convert Confluence (3.5 and earlier) markup to Markdown.

Overview

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

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

Notes

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