Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
added a special transformation for arc42 template
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed May 11, 2015
1 parent bf02dee commit fa70452
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions asciidoc2confluence.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ def parseBody(def body) {
parseAdmonitionBlock(block, cType)
}
}
//special for the arc42-template
body.select('div.arc42help').each { div ->
def divBody = div.select('.content').html()
div.after('<ac:structured-macro ac:name="expand"><ac:rich-text-body><ac:structured-macro ac:name="info"><ac:parameter ac:name="title">arc42</ac:parameter><ac:rich-text-body><p>'+divBody+'</p></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>')
div.remove()

}
body.select('div.title').wrap("<strong></strong>").unwrap()
body.select('div.listingblock').wrap("<p></p>").unwrap()

Expand Down

0 comments on commit fa70452

Please sign in to comment.