Skip to content

Instantly share code, notes, and snippets.

View lfrancke's full-sized avatar

Lars Francke lfrancke

View GitHub Profile
@lfrancke
lfrancke / convert.groovy
Last active May 11, 2020 21:58 — forked from melix/convert.groovy
Convert Confluence HTML export into asciidoc
@Grab('net.sourceforge.htmlcleaner:htmlcleaner:2.24')
import org.htmlcleaner.*
def src = new File('html').toPath()
def dst = new File('asciidoc').toPath()
def cleaner = new HtmlCleaner()
def props = cleaner.properties
props.translateSpecialEntities = false
def serializer = new SimpleHtmlSerializer(props)