 
       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 = """

    ## Subtitle

    content content
    """

    it "finds nothing if no headings", ->


    it "finds previous subtitle", ->
      editor.setText(text)
      editor.setCursorBufferPosition([10, 6])

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

    it "finds previous title", ->
      editor.setText(text)
