Skip to content

Constructors that accept a block do not render correctly #3

@Blacksmoke16

Description

@Blacksmoke16

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions