Crystal: Markdown is displayed differently in docs

Created on 7 Jul 2019  路  3Comments  路  Source: crystal-lang/crystal

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

Most helpful comment

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

All 3 comments

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

is this a bug or intended?

@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

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

Was this page helpful?
0 / 5 - 0 ratings