RDoc can be used to convert a string, possibly with RDoc "tags", to
HTML.
Example:

  require 'rubygems'
  require 'rdoc/markup/to_html'

  h = RDoc::Markup::ToHtml.new()
  puts h.convert('== Section 2')  # Output : "<h2>Section 2</h2>"

The string could be the contents of a text file, and this is a
functionality I use very often as a way to generate an HTML file from a
text file.

I was wondering if YARD can be used the same way, that is, to generate
HTML from plain text, possibly with RDoc "tags"?

I have not been able to find anything along these lines in the YARD
documentation.

Claus
-- 
Posted via http://www.ruby-forum.com/.