 
       when TYPES.media
        @addNode new Media indentation: line.indentation + 1, media: @parseMedia line.text
-       @prevBlock = @node
+       @prevNode = @node
        return
 
       else

     @node = @root
     @main = true
     @sidenotes = []
     @prevBlock = null
     @blocks = []

    parse: ->


     if line.empty
      if @node.type is TYPES.block
       @prevNode = @node
       @node = @node.parent()

      if @node.type is TYPES.codeBlock or @node.type is TYPES.html
