 
     it "finds previous subtitle", ->
       editor.setText(text)
-      editor.setCursorBufferPosition([6, 6])
-
-      jumpTo = new JumpTo()
-      expect(jumpTo.previousHeading()).toEqual(row: 4, column: 0)
+      editor.setCursorBufferPosition([10, 6])
+
+      jumpTo = new JumpTo()
+      expect(jumpTo.previousHeading()).toEqual(row: 8, column: 0)
 
     it "finds previous title", ->
       editor.setText(text)


    content content

    ## Subtitle

    content content


      jumpTo = new JumpTo()
      expect(jumpTo.previousHeading()).toEqual(row: 0, column: 0)

    it "skip code blocks in markdown", ->
      editor.setText(text)
      editor.setCursorBufferPosition([8, 6])

      jumpTo = new JumpTo()
      expect(jumpTo.previousHeading()).toEqual(row: 0, column: 0)


  describe ".nextHeading", ->
    text = """
