Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Constructors that accept a block do not render correctly #3

Open
Blacksmoke16 opened this issue Feb 27, 2022 · 0 comments
Open

Constructors that accept a block do not render correctly #3

Blacksmoke16 opened this issue Feb 27, 2022 · 0 comments

Comments

@Blacksmoke16
Copy link
Contributor

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant