Skip to content

@typstyle off is Ignored #223

Closed
Closed
@thekief

Description

I'm working on a typst document that acts as a template used by pandoc.

To handle a few special cases, there is some pp functionality included that is filled in during the pre-processing. Namely, this snippet here:

// boolean (default: false)
// @typstyle off
#let fill_page = ${if(fill_page)}${fill_page}${else}false${endif}

// boolean (default: false)
// @typstyle off
#let cont_tbl_header = ${if(cont_tbl_header)}${cont_tbl_header}${else}false${endif}

// boolean (default: true)
/* @typstyle off */
#let breakable_figure = ${if(breakable_figure)}${breakable_figure}${else}true${endif}

As you can see, I tried to disable the formatter for these lines, as they cause issues with the formatter, but to no avail. The formatter keeps complaining about these strings and I have to comment them out to be able to format them.

Do I use the option wrong or is it the string and its symbols that cause the issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions