]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use syntax highlighting markup from Github's gollum to add code blocks. 1/head
authorAndres Mejia <amejia004@gmail.com>
Sat, 4 Feb 2012 02:14:21 +0000 (21:14 -0500)
committerAndres Mejia <amejia004@gmail.com>
Sun, 5 Feb 2012 19:25:26 +0000 (14:25 -0500)
Fixes issue using <pre> tags for github wiki pages. See
https://github.com/github/gollum, section 'SYNTAX HIGHLIGHTING' for info on
using this markup.

doc/mdoc2mediawiki.awk

index 16649dae874978e6404461f89b3f5ae1dcf2307f..5fee29c32952d52ac4b196341d149705b64c471e 100755 (executable)
@@ -95,12 +95,12 @@ function breakline() {
 
 # Start an indented display
 function dispstart() {
-  linecmd("<pre>")
+  linecmd("```text")
 }
 
 # End an indented display
 function dispend() {
-  linecmd("</pre>")
+  linecmd("```")
 }
 
 # Collect rest of input line