Skip to content

[Feature request] Custom classes #217

@iamgio

Description

@iamgio

Discussed in #216

Originally posted by hxlnt October 7, 2025

It would be great to assign an HTML class to a specific element in order to style it different via CSS.

  • .container class:{xyz} for blocks
  • .text class:{xyz} for inlines

Something to take into account is future cross-target support: for instance .html and .css will only be accepted in HTML-based renderers. Future targets, such as LaTeX (#41), will need to ignore these function calls or throw an error.

As for this new feature, having an unsupported parameter is slightly different from an unsupported function, so it requires to take some design for future development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions