Changes for page Export To Markdown
Last modified by Tobias Wintrich on 2026/03/27 13:39
From version 3.1
edited by René Vögeli
on 2026/03/25 10:32
on 2026/03/25 10:32
Change comment:
There is no comment for this version
To version 1.1
edited by René Vögeli
on 2026/03/25 10:27
on 2026/03/25 10:27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,9 @@ 1 -{{groovy}} 1 +{{{{{groovy}} 2 2 import org.xwiki.environment.* 3 3 import org.xwiki.model.reference.* 4 4 5 5 if (request.confirm == '1') { 6 - services.query.xwql("select distinct doc.fullName from Document doc where doc.space like ' HowTos' or doc.space like 'HowTos.%'").execute().each() {6 + services.query.xwql("select distinct doc.fullName from Document doc where doc.space like 'Sandbox' or doc.space like 'Sandbox.%'").execute().each() { 7 7 print "* Converting ${it} to MD..." 8 8 def itemDoc = xwiki.getDocument(it) 9 9 def newContent = services.rendering.render(itemDoc.getXDOM(), 'markdown/1.2') ... ... @@ -17,4 +17,4 @@ 17 17 } 18 18 19 19 println "[[Export>>||queryString='confirm=1']]" 20 -{{/groovy}} 20 +{{/groovy}}}}}