Skip to content

Backslash in RDoc monofont causes linking #1390

@peterzhu2118

Description

@peterzhu2118

Bug can be reproduced by generating the RDoc for this script:

class Foo
  # This is not linked:
  # <tt>.bar.hello()</tt>
  #
  # But these are linked:
  # <tt>.bar.hello(\)</tt>
  # <tt>.bar.hello(\\\\)</tt>
  def foo

  # Hello from bar
  def bar
  end
end

The generated RDoc HTML looks like this. Notice how the backslash causes the monofont to generate a link to Foo#bar:

Image

I cannot find a way to prevent this link from generating. I think this is a bug, but I might be missing something from the syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions