Skip to content

Revoke default rules for an element #6302

Open

Description

@bluss

Description

Allow revoking or not having the effect of default rules for an element.

Use Case

Use case example: Allow styling raw blocks so that they follow the default document text and font. By default, raw blocks get a monospace font, and while you can override this, a package can not unset this built-in default and let it be inherited.

(To clarify, this use case is often that the base element, e.g. raw, is replaced entirely! Even more reason the user wants to revoke the rules set for the base element when replacing it with something else.)

Sketch (just a possibility out of many):

// clear those in particular
show raw.where(lang: "poem"): unset text(font, size)
show raw.where(lang: "poem"): unset par(...)
// clear everything you know about showing a heading?
show heading: revoke

Activity

  1. added
    feature request
    on May 19, 2025
  2. added
    styling
    on May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requeststyling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions