 	}
 	
 	public func insertTextChunk(initalContents: String, at index: Int) {
-		let chunk = InternalTextChunk(parser: parser, contents: initalContents, range: initalContents.fullNSRange)
+		let chunk = MarkdownChunk(parser: parser, contents: initalContents, range: initalContents.fullNSRange)
 		internalChunks.insert(chunk, at: index)
 	}
 

		parser = BaseSyntaxParser.parserWithTextStorage(textStorage, fileType: FileType.fileType(withExtension: "Rmd")!, helpCallback: helpCallback)!
		parser.parse()
		frontMatter.value = parser.frontMatter
		var lastTextChunk: InternalTextChunk?
		var lastWasInline: Bool = false
		try parser.chunks.forEach { parserChunk in
			switch parserChunk.chunkType {

}

// MARK: -
class MarkdownChunk: InternalRmdChunk, TextChunk {
	var inlineElements: [InlineChunk]
	
	init(parser: BaseSyntaxParser, contents: String, range: NSRange) {
