From: Andres Mejia Date: Sat, 4 Feb 2012 02:14:21 +0000 (-0500) Subject: Use syntax highlighting markup from Github's gollum to add code blocks. X-Git-Tag: v3.0.4~2^2~125^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1%2Fhead;p=thirdparty%2Flibarchive.git Use syntax highlighting markup from Github's gollum to add code blocks. Fixes issue using
 tags for github wiki pages. See
https://github.com/github/gollum, section 'SYNTAX HIGHLIGHTING' for info on
using this markup.
---

diff --git a/doc/mdoc2mediawiki.awk b/doc/mdoc2mediawiki.awk
index 16649dae8..5fee29c32 100755
--- a/doc/mdoc2mediawiki.awk
+++ b/doc/mdoc2mediawiki.awk
@@ -95,12 +95,12 @@ function breakline() {
 
 # Start an indented display
 function dispstart() {
-  linecmd("
")
+  linecmd("```text")
 }
 
 # End an indented display
 function dispend() {
-  linecmd("
") + linecmd("```") } # Collect rest of input line