Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Markdown is displayed differently in docs #7954

Closed
cheeze2000 opened this issue Jul 7, 2019 · 3 comments
Closed

Markdown is displayed differently in docs #7954

cheeze2000 opened this issue Jul 7, 2019 · 3 comments

Comments

@cheeze2000
Copy link

I commented a method like such.

# - cat
# - dog
def animal
end

Using crystal docs, the docs generated shows that the markdown is displayed differently. This is how it looks like in the "Instance Method Summary".
2019-07-07_09-21

However, it looks like this in the "Instance Method Detail".
2019-07-07_09-23

$ crystal -v
Crystal 0.29.0 (2019-06-06)

LLVM: 6.0.1
Default target: x86_64-pc-linux-gnu

OS: Manjaro Linux x86_64
Kernel: 4.19.56-1-MANJARO

@girng
Copy link
Contributor

girng commented Jul 7, 2019

so the issue is basically markdown lists are not supported in instance method summary section?

is this a bug or intended?

@Blacksmoke16
Copy link
Member

@cheeze2000 The summary only show the first line/sentence. If anything I'd say this is an issue with the logic that does that. However I don't think it should show the list, as the summary is only a single line.

If anything (and arguably better) can do something like

# Returns the animal associated with `self`.
#
# - cat
# - dog
def animal

@cheeze2000
Copy link
Author

You're right. There is a reason why it is called the summary. Thank you for the help.

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

No branches or pull requests

3 participants