PHP 8.2.31
Preview: markdown.rb Size: 444 B
//proc/thread-self/root/opt/alt/ruby20/lib64/ruby/2.0.0/rdoc/parser/markdown.rb

##
# Parse a Markdown format file.  The parsed RDoc::Markup::Document is attached
# as a file comment.

class RDoc::Parser::Markdown < RDoc::Parser

  include RDoc::Parser::Text

  parse_files_matching(/\.(md|markdown)(?:\.[^.]+)?$/)

  ##
  # Creates an Markdown-format TopLevel for the given file.

  def scan
    comment = RDoc::Comment.new @content, @top_level
    comment.format = 'markdown'

    @top_level.comment = comment
  end

end


Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
33.41 KB lrw-r--r-- 2012-12-13 07:58:47
Edit Download
4.54 KB lrw-r--r-- 2013-01-04 06:16:13
Edit Download
444 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
408 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
45.13 KB lrw-r--r-- 2012-12-20 06:23:28
Edit Download
2.93 KB lrw-r--r-- 2012-11-27 04:28:14
Edit Download
1.39 KB lrw-r--r-- 2012-11-27 04:28:14
Edit Download
277 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).