mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	Added nested list support
This commit is contained in:
		
							
								
								
									
										10
									
								
								assets/js/nested-list.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								assets/js/nested-list.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
(function () {
 | 
			
		||||
    const content = document.querySelector('.gh-content');
 | 
			
		||||
    if (!content) return;
 | 
			
		||||
 | 
			
		||||
    content.querySelectorAll('ul li, ol li').forEach(function (item) {
 | 
			
		||||
        if (item.querySelector('ul, ol')) {
 | 
			
		||||
            item.classList.add('kg-nested-list-item');
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
})();
 | 
			
		||||
		Reference in New Issue
	
	Block a user