rdoc/rdoc — Issue #97: RDoc generates invalid "id" attribute.
Author: cfbrobak
Created: 2012-02-06 09:50:18+00:00
State: open

### Environment:
* jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java]
* RDoc 3.12

### Program
require 'rubygems'
gem 'rdoc'
require 'rdoc'
puts RDoc::Markup::ToHtml.new().convert('= Hello, World!')

### Problem
Output from running this program is a HTML "h1" tag with an "id" attribute containing "label-Hello%2C+World%21".
However, an "id" attribute must not contain "%" and "+" characters. These are the rules (I believe):

* Must begin with a letter A-Z or a-z
* Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), and underscores ("_")
* In HTML, all values are case-insensitive