mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	refactor: Rename bugdown to markdown in compose.js.
This commit is part of series of commits aimed at renaming bugdown to markdown.
This commit is contained in:
		@@ -817,13 +817,14 @@ exports.render_and_show_preview = function (preview_spinner, preview_content_box
 | 
			
		||||
            const spinner = preview_spinner.expectOne();
 | 
			
		||||
            loading.make_indicator(spinner);
 | 
			
		||||
        } else {
 | 
			
		||||
            // For messages that don't appear to contain
 | 
			
		||||
            // bugdown-specific syntax not present in our
 | 
			
		||||
            // marked.js frontend processor, we render using the
 | 
			
		||||
            // frontend markdown processor message (but still
 | 
			
		||||
            // render server-side to ensure the preview is
 | 
			
		||||
            // accurate; if the `markdown.contains_backend_only_syntax` logic is
 | 
			
		||||
            // incorrect wrong, users will see a brief flicker).
 | 
			
		||||
            // For messages that don't appear to contain syntax that
 | 
			
		||||
            // is only supported by our backend markdown processor, we
 | 
			
		||||
            // render using the frontend markdown processor (but still
 | 
			
		||||
            // render server-side to ensure the preview is accurate;
 | 
			
		||||
            // if the `markdown.contains_backend_only_syntax` logic is
 | 
			
		||||
            // wrong, users will see a brief flicker of the locally
 | 
			
		||||
            // echoed frontend rendering before receiving the
 | 
			
		||||
            // authoritative backend rendering from the server).
 | 
			
		||||
            const message_obj = {
 | 
			
		||||
                raw_content: content,
 | 
			
		||||
            };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user