fedimbed: fix newlines for mastodon posts
This commit is contained in:
		
							parent
							
								
									2fc8192147
								
							
						
					
					
						commit
						cd08f98b74
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -290,6 +290,7 @@ async function processUrl(msg, url) {
 | 
			
		|||
 | 
			
		||||
  // TODO: convert certain HTML tags back to markdown
 | 
			
		||||
  content = content.replace(/<br>/g, "\n");
 | 
			
		||||
  content = content.replace(/<\/p><p>/g, "\n\n");
 | 
			
		||||
  content = content.replace(/(<([^>]+)>)/gi, "");
 | 
			
		||||
  content = parseHtmlEntities(content);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue