api-doc-tools icon indicating copy to clipboard operation
api-doc-tools copied to clipboard

mdoc bullet lists only work with item+term, but should be item+description

Open collegedude opened this issue 8 years ago • 3 comments

ccording to Microsoft documentation the bullet list's items should have description subtags (https://docs.microsoft.com/de-de/dotnet/csharp/programming-guide/xmldoc/list)

/// <list type="bullet">
/// <item>
/// <description>Item 1.</description>
/// </item>
/// <item>
/// <description>Item 2.</description>
/// </item>
/// </list>

In this case mdoc will only create empty XML items and HTML will only show the bullets but no text. If I replace with it works, but this is not how it is supposed to be.

collegedude avatar Sep 25 '17 11:09 collegedude

Thanks for letting us know about this issue @collegedude ... just to be clear, I wanted to verify how you are generating HTML. Are you using mdoc's export-html subcommand?

joelmartinez avatar Oct 04 '17 14:10 joelmartinez

@joelmartinez : I am using mdoc-export-html for HTML output and mdoc update to generate the XML.

collegedude avatar Oct 05 '17 06:10 collegedude

I just stumbled across the same discrepancy - is there agreement that the better/more correct syntax for bullet and number lists would be to use description rather than term? (I'm trying to decide which one to use in XML doc comments I'm writing today.)

Thanks,

David

davidmatson avatar Nov 22 '17 20:11 davidmatson