lib/github/mandoc.rb
def gsub(pattern, replacement = "")
				src = @doc.root.to_s
				if pattern.is_a? Hash
					pattern.each { |patt, repl| src = src.gsub(patt, repl) }
				else
					src = src.gsub(pattern, replacement)
				end
				@doc.inner_html = src
			end
# Modify the in-memory HTML tree using regular expressions
Modify the in-memory HTML tree using regular expressions
Modify the in - memory HTML tree using regular expressions
def gsub(pattern, replacement = "")
				src = @doc.root.to_s
				if pattern.is_a? Hash
					pattern.each { |patt, repl| src = src.gsub(patt, repl) }
				else
					src = src.gsub(pattern, replacement)
				end
				@doc.inner_html = src
			end
def gsub ( pattern , replacement = "" ) src = @doc . root . to_s if pattern . is_a? Hash pattern . each { | patt , repl | src = src . gsub ( patt , repl ) } else src = src . gsub ( pattern , replacement ) end @doc . inner_html = src end
Modify the in-memory HTML tree using regular expressions
Modify the in - memory HTML tree using regular expressions
pattern
replacement