mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Fix syntax highlighting for markdown code blocks on issue description/comment save
This commit is contained in:
		@@ -385,6 +385,9 @@ function initRepository() {
 | 
				
			|||||||
                            } else {
 | 
					                            } else {
 | 
				
			||||||
                                $render_content.html(data.content);
 | 
					                                $render_content.html(data.content);
 | 
				
			||||||
                                emojify.run($render_content[0]);
 | 
					                                emojify.run($render_content[0]);
 | 
				
			||||||
 | 
					                                $('pre code', $render_content[0]).each(function(i, block) {
 | 
				
			||||||
 | 
					                                    hljs.highlightBlock(block);
 | 
				
			||||||
 | 
					                                });
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user