From 2bea800a371e57170017f1045f883f7140936e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicent=20Mart=C3=AD?= Date: Wed, 2 May 2012 18:53:15 -0700 Subject: [PATCH] Proper ordering for markup processing, fixes #135 Code blocks get extracted first. --- lib/gollum/markup.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gollum/markup.rb b/lib/gollum/markup.rb index b977bc58..06463be7 100644 --- a/lib/gollum/markup.rb +++ b/lib/gollum/markup.rb @@ -38,8 +38,9 @@ module Gollum @wiki.history_sanitizer : @wiki.sanitizer - data = extract_tex(@data.dup) + data = @data.dup data = extract_code(data) + data = extract_tex(data) data = extract_wsd(data) data = extract_tags(data) begin