def split(path, marker=nil)
      marker ||= SPLIT_MARKER
      content = File.read(path)
      filename = File.basename(path, '.*')
      yfm, content = retrieveYFM(content)
      contents = [filename] + content.split(marker)
      prev_name = filename
      contents.each_slice(2).with({}) do |(fname, text), h|
        fname = prev_name = create_filename(prev_name) if fname.strip.empty?
        h[fname.strip] = yfm + text
      end
    end
def split(path, marker=nil)
      marker ||= SPLIT_MARKER
      content = File.read(path)
      filename = File.basename(path, '.*')
      yfm, content = retrieveYFM(content)
      contents = [filename] + content.split(marker)
      prev_name = filename
      contents.each_slice(2).with({}) do |(fname, text), h|
        fname = prev_name = create_filename(prev_name) if fname.strip.empty?
        h[fname.strip] = yfm + text
      end
    end
Split a file with SPLIT_MARKER.
 Returns a Hash of filename key with its content.