mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 15:57:31 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import {initMarkupCodeMermaid} from './mermaid.ts';
 | |
| import {initMarkupCodeMath} from './math.ts';
 | |
| import {initMarkupCodeCopy} from './codecopy.ts';
 | |
| import {initMarkupRenderAsciicast} from './asciicast.ts';
 | |
| import {initMarkupTasklist} from './tasklist.ts';
 | |
| import {registerGlobalSelectorFunc} from '../modules/observer.ts';
 | |
| import {initMarkupRenderIframe} from './render-iframe.ts';
 | |
| 
 | |
| // code that runs for all markup content
 | |
| export function initMarkupContent(): void {
 | |
|   registerGlobalSelectorFunc('.markup', (el: HTMLElement) => {
 | |
|     initMarkupCodeCopy(el);
 | |
|     initMarkupTasklist(el);
 | |
|     initMarkupCodeMermaid(el);
 | |
|     initMarkupCodeMath(el);
 | |
|     initMarkupRenderAsciicast(el);
 | |
|     initMarkupRenderIframe(el);
 | |
|   });
 | |
| }
 |