|  | @@ -87,6 +87,7 @@
 | 
	
		
			
				|  |  |  		<div id="notes"></div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		<script src="/socket.io/socket.io.js"></script>
 | 
	
		
			
				|  |  | +                <script src="/lib/js/showdown.js"></script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		<script>
 | 
	
		
			
				|  |  |  		var socketId = '{{socketId}}';
 | 
	
	
		
			
				|  | @@ -99,7 +100,13 @@
 | 
	
		
			
				|  |  |  			// ignore data from sockets that aren't ours
 | 
	
		
			
				|  |  |  			if (data.socketId !== socketId) { return; }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			notes.innerHTML = data.notes;
 | 
	
		
			
				|  |  | +                        if (data.markdown) {
 | 
	
		
			
				|  |  | +                          notes.innerHTML = (new Showdown.converter()).makeHtml(data.notes);
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        else {
 | 
	
		
			
				|  |  | +                          notes.innerHTML = data.notes;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  			currentSlide.contentWindow.Reveal.navigateTo(data.indexh, data.indexv);
 | 
	
		
			
				|  |  |  			nextSlide.contentWindow.Reveal.navigateTo(data.nextindexh, data.nextindexv);
 | 
	
		
			
				|  |  |  		});
 |