             head = head.append new model.TextToken line
             head = head.append socket.end
             head = head.append block.end
+
+            if block.stringify().match(/^\s*#.*$/)?
+              block.socketLevel = helper.BLOCK_ONLY
 
           else
             head = head.append new model.TextToken line

              head = head.append new model.TextToken(line[lastIndex...mark.location.column])
              head = head.append socket.end
              head = head.append block.end

            else
              head = head.append new model.TextToken(line[lastIndex...mark.location.column])

          # (unless there is no such text
          unless lastIndex >= mark.location.column or lastIndex >= line.length
            if (opts.wrapAtRoot and stack.length is 0) or stack[stack.length - 1]?.type is 'indent'
              block = new model.Block 0, 'blank', null, helper.ANY_DROP
              socket = new model.Socket()
              socket.handwritten = true

