From: Robert Dober Date: 2007-07-30T06:48:12+09:00 Subject: Re: Rdoc allowing arbitrary HTML On 7/29/07, Phlip wrote: > Robert Dober > > > %html > > > > I thought I will share this patch which seems to work. > > This patch doesn't seem complete. For example... > > if /^\s*%html/ === line.text then > line.text.sub!("%html","") > line.stamp( Line::PURE_HTML, level ) > - dbg "in simple_markup",line > next > end > > The patch only says to remove the dbg line; it doesn't seem to say to add > the %html lines around it, which are the point of the exercise. And I can't > find PURE_HTML anywhere. > > -- > Phlip > http://www.oreilly.com/catalog/9780596510657/ > "Test Driven Ajax (on Rails)" > assert_xpath, assert_javascript, & assert_ajax > > > It seems that the diff has been made against an intermediate version, I can send you the files off list if you want. I have not completely understood RDoc and please be aware that this is err very basic; A first issue I found is that if you say # aaa # %html (1) # bbb you will have a paragraph around (1) can be fixed with %html aaa %html (1) %html bbb but that was not the real purpose, I should need to study what exactly the visitors do with the annotated lines, soo few time :( Cheers Robert -- [...] as simple as possible, but no simpler. -- Attributed to Albert Einstein