mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-04 06:49:49 +00:00 
			
		
		
		
	fix: text highlighting
This commit is contained in:
		@@ -113,7 +113,7 @@
 | 
			
		||||
{{end}}
 | 
			
		||||
 | 
			
		||||
{{/* Make ==text== into <mark>text</mark> */}}
 | 
			
		||||
{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
 | 
			
		||||
{{$mark := findRE "==([^=\n]+)==" $content}}
 | 
			
		||||
{{range $mark}}
 | 
			
		||||
  {{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
 | 
			
		||||
  {{$content = replace $content . $fixed}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user