We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ede776 commit c9d6e77Copy full SHA for c9d6e77
lib/coderay/encoders/html/numbering.rb
@@ -17,7 +17,7 @@ def self.number! output, mode = :table, options = {}
17
18
anchor_prefix = options[:line_number_anchors]
19
anchor_prefix = 'line' if anchor_prefix == true
20
- anchor_prefix = anchor_prefix.to_s[/\w+/] if anchor_prefix
+ anchor_prefix = anchor_prefix.to_s[/[\w-]+/] if anchor_prefix
21
anchoring =
22
if anchor_prefix
23
proc do |line|
0 commit comments