Method: Tree.clean_path

Defined in:
lib/xiki/tree.rb

.clean_path(path) ⇒ Object



830
831
832
833
834
835
# File 'lib/xiki/tree.rb', line 830

def self.clean_path path
  path = Line.without_label :line=>path#, :leave_indent=>true
  path.sub!(/^([^|\n-]*)##.+/, "\\1")  # Ignore "##"
  path.sub!(/^([^|\n-]*)\*\*.+/, "\\1")  # Ignore "**"
  path
end