fix: clean wikilinks and render latex in popover
This commit is contained in:
		
							parent
							
								
									364aee36fc
								
							
						
					
					
						commit
						b21b27d1d3
					
				
					 4 changed files with 31 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -85,7 +85,11 @@
 | 
			
		|||
      );
 | 
			
		||||
 | 
			
		||||
      {{if $.Site.Data.config.enableLinkPreview}}
 | 
			
		||||
      initPopover({{strings.TrimRight "/" .Site.BaseURL }}, {{$.Site.Data.config.enableContextualBacklinks}})
 | 
			
		||||
      initPopover(
 | 
			
		||||
        {{strings.TrimRight "/" .Site.BaseURL }},
 | 
			
		||||
        {{$.Site.Data.config.enableContextualBacklinks}},
 | 
			
		||||
        {{$.Site.Data.config.enableLatex}}
 | 
			
		||||
      )
 | 
			
		||||
      {{end}}
 | 
			
		||||
      {{if $.Site.Data.config.enableLatex}}
 | 
			
		||||
      renderMathInElement(document.body, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,4 +12,4 @@
 | 
			
		|||
        </div>
 | 
			
		||||
    </li>
 | 
			
		||||
    {{- end -}}
 | 
			
		||||
</ul>
 | 
			
		||||
</ul>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue