We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e984d commit d0b9a7cCopy full SHA for d0b9a7c
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.9
8
9
* Fix Ruby scanner: Ruby 1.9 hash syntax @{ key: value }@ is highlighted correctly. [GH #106, thanks to Seth Vargo]
10
+* Fix HTML scanner: Accept DTDs. [GH #83]
11
12
h2. Changes in 1.0.8
13
lib/coderay/scanners/html.rb
@@ -101,7 +101,7 @@ def scan_tokens encoder, options
101
when :initial
102
if match = scan(/<!--(?:.*?-->|.*)/m)
103
encoder.text_token match, :comment
104
- elsif match = scan(/<!DOCTYPE(?:.*?>|.*)/m)
+ elsif match = scan(/<!(\w+)(?:.*?>|.*)|\]>/m)
105
encoder.text_token match, :doctype
106
elsif match = scan(/<\?xml(?:.*?\?>|.*)/m)
107
encoder.text_token match, :preprocessor
0 commit comments