crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Constructors that accept a block do not render correctly

Open Blacksmoke16 opened this issue 3 years ago • 0 comments

Given the code:

class Athena::Validator::Foo
  def self.new(v : Int32 = 1)
    new ->{ v }
  end

  def initialize(&@callback : -> Int32); end
end

crystal docs would render:

image

While via mkdocs renders:

image

Not sure if its related, but it seems there also some extra whitespace after the method names?

Blacksmoke16 avatar Feb 27 '22 21:02 Blacksmoke16