markdown bug is Diaspora's. We can't fix it.
This commit is contained in:
		
					parent
					
						
							
								96031d0e95
							
						
					
				
			
			
				commit
				
					
						3bdcb52471
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -94,6 +94,9 @@ function bb2diaspora($Text,$preserve_nl = false) {
 | 
			
		|||
 | 
			
		||||
	// [img]pathtoimage[/img]
 | 
			
		||||
 | 
			
		||||
//	$Text = preg_replace("/\[url\=([$URLSearchString]*)\]\[img\](.*?)\[\/img\]\[\/url\]/ism", 
 | 
			
		||||
//		'' . "\n" . '[' . t('link') . '](' . '$1' . ')', $Text);
 | 
			
		||||
 | 
			
		||||
	$Text = preg_replace("/\[bookmark\]([$URLSearchString]*)\[\/bookmark\]/ism", '[$1]($1)', $Text);
 | 
			
		||||
	$Text = preg_replace("/\[bookmark\=([$URLSearchString]*)\](.*?)\[\/bookmark\]/ism", '[$2]($1)', $Text);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -101,8 +104,6 @@ function bb2diaspora($Text,$preserve_nl = false) {
 | 
			
		|||
	$Text = preg_replace("/\#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '[#$2]($1)', $Text);
 | 
			
		||||
	$Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '[$2]($1)', $Text);
 | 
			
		||||
 | 
			
		||||
	$Text = preg_replace("/\[url\=([$URLSearchString]*)\]\[img\](.*?)\[\/img\]\[\/url\]/ism", 
 | 
			
		||||
		'' . "\n" . '[' . t('link') . '](' . '$1' . ')', $Text);
 | 
			
		||||
 | 
			
		||||
	$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '', $Text);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue