fix: text highlighting
This commit is contained in:
		
							parent
							
								
									5a7936e23a
								
							
						
					
					
						commit
						4cd6f7efdf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue