Discover Packages 
           
        
          
            code.gitea.io/gitea 
           
        
          
            modules 
           
        
        
          
            svg
           
          
            
               
          
        
       
     
   
  
    
  
    
       
    
    
      package 
    
    
      
        
           
      
    
   
    
      
  
    
      
  
    
      Version:  
        v1.25.0
     
    
      Opens a new window with list of versions in this module.
    
    
    
   
      
  
    Published: Oct 29, 2025
   
      
  
    License: MIT 
      
    
   
  
    Opens a new window with license information.
  
      
        
  
    
      Imports:  10
     
   
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by:  4
     
   
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
 
    
      
    
    
  
  
    
      
        
          Documentation 
        
       
     
  
 
    
  
    
      
      
        
          
  
    
      ¶ 
     
    
  
    
  
    
      
        
 
  
  
  
  
  
	  
  
  
    
    
    
  Init discovers SVG icons and populates the `svgIcons` variable
  
         
	  
  
  
    
    
    
      func MockIcon(icon string ) func() 
     
  
  
         
	  
  
  
    
    
    
  Normalize normalizes the SVG content: set default width/height, remove unnecessary tags/attributes
It's designed to work with valid SVG content. For invalid SVG content, the returned content is not guaranteed.
  
         
	  
  
  
    
    
    
  RenderHTML renders icons - arguments icon name (string), size (int), class (string)
  
           
      
     
   
        
      
      
        
  
    
      ¶ 
     
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.