# File lib/maruku/input/parse_doc.rb, line 111
  def safe_execute_code(object, code)
    begin
      object.instance_eval(code)
    rescue StandardError, ScriptError => e
      maruku_error "Exception while executing this:\n" +
        code.gsub(/^/, ">") +
        "\nThe error was:\n" +
        (e.inspect + "\n" + e.send(:caller).join("\n")).gsub(/^/, "|")
      nil
    end
  end