Skip to content

Instantly share code, notes, and snippets.

View bdabelow's full-sized avatar

Benjamin Dabelow bdabelow

  • Dedalus HealthCare
  • Germany
View GitHub Profile
@bdabelow
bdabelow / convert.groovy
Last active September 21, 2023 06:27 — forked from melix/convert.groovy
Convert Confluence HTML export into asciidoc
@Grab('net.sourceforge.htmlcleaner:htmlcleaner:2.4')
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)