parameters: (md)
return_statement: return target
docstring: Get the specified extension.
docstring_summary: Get the specified extension.
docstring_tokens: Get the specified extension .
function: def get_hl_settings(md):
      """Get the specified extension."""
      target = None
  
      for ext in md.registeredExtensions:
          if isinstance(ext, HighlightExtension):
              target = ext.getConfigs()
              break
  
      if target is None:
          for ext in md.registeredExtensions:
              if isinstance(ext, CodeHiliteExtension):
                  target = ext.getConfigs()
                  break
  
      if target is None:
          target = {}
          config_clone = copy.deepcopy(DEFAULT_CONFIG)
          for k, v in config_clone.items():
              target[k] = config_clone[k][0]
      return target
function_tokens: def get_hl_settings ( md ) : target = None for ext in md . registeredExtensions : if isinstance ( ext , HighlightExtension ) : target = ext . getConfigs ( ) break if target is None : for ext in md . registeredExtensions : if isinstance ( ext , CodeHiliteExtension ) : target = ext . getConfigs ( ) break if target is None : target = { } config_clone = copy . deepcopy ( DEFAULT_CONFIG ) for k , v in config_clone . items ( ) : target [ k ] = config_clone [ k ] [ 0 ] return target