You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			411 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			13 lines
		
	
	
		
			411 B
		
	
	
	
		
			TypeScript
		
	
import linkTextInternal from '../../js/modules/link_text';
 | 
						|
 | 
						|
 | 
						|
export const linkText = (value: string): string =>
 | 
						|
  linkTextInternal(value, { target: '_blank' });
 | 
						|
 | 
						|
export const replaceLineBreaks = (value: string): string =>
 | 
						|
  value.replace(/\r?\n/g, '<br>');
 | 
						|
 | 
						|
// NOTE: How can we use `lodash/fp` `compose` with type checking?
 | 
						|
export const render = (value: string): string =>
 | 
						|
  replaceLineBreaks(linkText(value));
 |