From 30fd40fbe5956a597ed4b5f81b4b499343e9b329 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 30 Aug 2012 20:29:53 -0600 Subject: [PATCH] Fix #498 Ruby 1.8.7 and ri can't deal with ` markers, and must + # is content found between markers, and must # be a valid YAML mapping. # + # Because ri and ruby 1.8.7 are awesome, the markers can't + # be included in this documentation without triggering + # `Unhandled special: Special: type=17` + # Please read the source code for the exact markers + # # Returns the String of formatted data with metadata removed. def extract_metadata(data) @metadata ||= {} + # The markers are `` data.gsub(/\<\!--+\s+---(.*?)--+\>/m) do yaml = @wiki.sanitizer.clean($1) hash = YAML.load(yaml)