Skip to content

Instantly share code, notes, and snippets.

View cwe1ss's full-sized avatar

Christian Weiss cwe1ss

View GitHub Profile
@cwe1ss
cwe1ss / index.js
Created September 22, 2022 13:53
Convert Confluence to Markdown (Azure DevOps)
const fs = require('fs/promises')
const path = require('path')
//const util = require('util')
const sanitize = require("sanitize-filename")
const HTMLParser = require('node-html-parser')
const TurndownService = require('turndown')
const TurndownPluginGfmService = require('@guyplusplus/turndown-plugin-gfm')
const TurndownPluginConfluenceToGfmService = require('turndown-plugin-confluence-to-gfm')
# Based on
# https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
#--- Uninstall unnecessary applications that come with Windows out of the box ---
# Microsoft
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage