Skip to content

Autodoc: Allow multi-paragraph summary doc comments with --- #20202

Open
@mnemnion

Description

@mnemnion

Edit: this is intended behavior, jump to this link for why this issue is still open (other than the aesthetically-pleasing number).

Zig Version

0.12.0

Steps to Reproduce and Observed Behavior

Write a public function with a multi-paragraph docstring, like so

/// Prefabulate a Turboencabulator
///
/// Assumes memory is mutable and logarithmic. 
/// 
/// Up to six hydrocoptic marzlevanes may be provided.
///
/// Caller owns returned memory.
pub fn turboEncabulate(...) etc { ... }

Then generate docs.

Result: only the line "Prefabulate a Turboencabulator" is included in the docs.

Expected Behavior

As with top-level doc comments, I expected all of the doc comment to be included in the generated documentation, separated into paragraphs, as they appear in the source file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autodocThe web application for interactive documentation and generation of its assets.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions