Skip to content

[Enhancement] Expose internal functions for shorthands #369

@vitto4

Description

@vitto4

Before submitting

  • I am using the latest version of Quarkdown.
  • I have checked the wiki to confirm this feature doesn't already exist.
  • I have searched existing issues for duplicates.

Description

Shorthands like <<<, ## Heading, ![](image) or [text](link) could also be exposed1 as quarkdown .functions, so that they may be used in scripts ; just like can also be written .br.

I hope I didn't miss anything, but afaik there is no way to do something like this at the moment :

.foreach {1..4}
    n:
    .heading {Heading of level .n} level:{.n}

Proposed syntax or behavior

Additional context

No response

Footnotes

  1. See also how Typst does it.

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