We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e8836 commit 3ebeee9Copy full SHA for 3ebeee9
Changes.textile
@@ -7,6 +7,7 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
7
h2. Changes in 1.0.7
8
9
* Fix issue with plugin files not being loaded. [GH-20, thanks to Will Read]
10
+* Fix HTML scanner bug: Don't choke on boolean attributes. [GH-26, thanks to jugglinmike]
11
12
h2. Changes in 1.0.6
13
lib/coderay/scanners/html.rb
@@ -149,12 +149,9 @@ def scan_tokens encoder, options
149
if match = scan(/=/) #/
150
encoder.text_token match, :operator
151
state = :attribute_value
152
- elsif scan(/#{ATTR_NAME}/o) || scan(/#{TAG_END}/o)
153
- state = :attribute
154
- next
155
else
156
- encoder.text_token getch, :error
157
state = :attribute
+ next
158
end
159
160
when :attribute_value
0 commit comments