 	let docType: DocType
 	let equationType: EquationType
 	
+	var rawText: String { return textStorage.string }
+	
 	init(parser: BaseSyntaxParser, chunk: DocumentChunk) {
 		self.parser = parser
 		self.chunkType = chunk.chunkType

public protocol RmdChunk: class {
	var textStorage: NSTextStorage { get }
	var chunkType: ChunkType { get }
	
}

public protocol InlineChunk: RmdChunk {}

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