Skip to content

[Typst Universe] Allow to hide some README data #2929

@mayconfmelo

Description

@mayconfmelo

Problem related

In my package repositories, I like to start the README.md with the package title and description; when the package is added to Typst Universe, the title is automatically stripped in favor of the Typst package name (no problem here), but other metadata stays there and can end up duplicated, like the description:

Repository Typst Universe
GitHub Typst Universe

Proposed solution

Everything with some specific class in README.md could be automatically hidden in Typst Universe:

<span class="universe-hide">
    Simple and complete books without introducing new syntax
<span>
Hidden description

This could also be useful to hide repository-specific data (such as development info) from Typst Universe.

Considered alternative

A data attribute could also be used, instead of a class:

<span data-universe-hide>
    Simple and complete books without introducing new syntax
<span>

Additional info

I did a quick search through documentation and found no such feature; if there is already any, please disregard this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions