Skip to content

Improve cross-linking of types in 'Pandoc Lua Filters' docs #10529

@0xdevalias

Description

@0xdevalias

In the spirit of:

  • https://pandoc.org/CONTRIBUTING.html
    • Write or improve documentation. If you ran into a problem which took more time to figure out than expected, please consider to save other users from the same experience. People writing the documentation tend to lack an outside view, so please help provide one. Good documentation is both difficult and extremely important.

Describe your proposed improvement and the problem it solves.

In the Lua Filters documentation, there are generally 2 different sections for the various types, and their constructors. eg.

A pattern I've noticed is that the 'type' usually includes a cross-link to the 'constructor':

Values of this type can be created with the pandoc.Emph constructor.

Values of this type can be created with the pandoc.CodeBlock constructor.

But the 'constructor' doesn't seem to include a crosslink to the 'type', and usually only refers to the more generic Block / Inline:

Returns:

Returns:

  • CodeBlock element (Block)

While I was recently exploring writing a lua filter I found myself spending a lot of time jumping back and forth in the docs, and felt like it would be easier if those sections cross-linked to one another.

Describe alternatives you've considered.

I'm aware of this issue/PR, but the nuance is different:

This docs issue is also unrelated, except for improving the docs UX for new users in general:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions