def load_resource(name):
 try:
  if is_ST3():
   return sublime.load_resource('Packages/Markdown Preview/{0}'.format(name))
  else:
   filename = os.path.join(sublime.packages_path(), INSTALLED_DIRECTORY, os.path.normpath(name))
   return load_utf8(filename)
 except:
  print ("Error while load_resource('%s')" % name)
  traceback.print_exc()
  return ''

def load_resource ( name ) : try : if is_ST3 ( ) : return sublime . load_resource ( 'Packages/Markdown Preview/{0}' . format ( name ) ) else : filename = os . path . join ( sublime . packages_path ( ) , INSTALLED_DIRECTORY , os . path . normpath ( name ) ) return load_utf8 ( filename ) except : print ( "Error while load_resource('%s')" % name ) traceback . print_exc ( ) return ''
return file contents for files within the package root folder .