Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save doughgle/b22e0e0ccdb02ec6b61a04b4c9ae9f2e to your computer and use it in GitHub Desktop.
Save doughgle/b22e0e0ccdb02ec6b61a04b4c9ae9f2e to your computer and use it in GitHub Desktop.
Github markdown to Jira/Confluence markup using pandoc

using doughgle/docs-as-code:main

$ docker run -it ghcr.io/doughgle/docs-as-code:main bash

Example markdown

hugo:/src$ cat test.md 
# Test markdown

Hello world

[click me](https://example.com)

Convert it

$ pandoc --from gfm --to jira -o confluence.wiki test.md

To import converted file into Confluence:

  • Create new page
  • Click on the body of the page, click on the " + /" dropdown in toolbar ("Insert more content") and select "Markup"
  • Paste the contents into the pop-up window (select "Confluence wiki" as the format)
  • Note: The "Markdown" option in the import pop-up doesn't seem to work for Github flavored markdown (gfm).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment