 
 class LivePreviewDisplayController: AbstractSessionViewController, OutputController, LivePreviewOutputController, WKUIDelegate, WKNavigationDelegate
 {
+	
 	// required by OutputController, should use at some point
 	var contextualMenuDelegate: ContextualMenuDelegate?
 

		guard let doc = parsedDocument else { fatalError("textFor called w/o a document") }
		let inlineText = doc.string(for: inlineChunk, type: .inner)
		var icText = inlineText
		switch RootChunkType(inlineChunk.chunkType) {
		case .code:
			icText = doc.string(for: inlineChunk, type: .outer)
		case .equation:
			icText = "\\(\(inlineText)\\)"
		case .markdown:
			preconditionFailure("inline chunk can't be markdown")
		}
		return icText
	}

			Log.info("udpating just chunks \(changedChunkIndexes)")
			for chunkNumber in changedChunkIndexes {
				let chunk = curDoc.chunks[chunkNumber]
				var html = htmlFor(chunk: chunk, index: chunkNumber)
				html = escapeForJavascript(html)
				
				let command = "$(\"section[index='\(chunkNumber)']\").html('\(html)'); MathJax.typeset()"
//				let command = "document.querySelector('section[index=\(chunkNumber)]').html('\(html)'); MathJax.typeset(); debugger;"
				outputView?.evaluateJavaScript(command, completionHandler: nil)
			}
		} else { // no changes, so just refresh everything
