Skip to content

Text above or below arrows expects word to start with Captial letter #10

Description

@gvdeynde

If the text in the square brackets to be put above or below an arrow starts with a non-capital letter, the parsing goes crazy.

MWE:

#import "@preview/chemformula:0.1.2": ch

#ch("A ->[Test][Below] B")

// #ch("A ->[test][Below] B")

Uncommenting the last line, will give an error

error: unknown variable: test
    ┌─ @preview/chemformula:0.1.2\src\chemformula.typ:212:4
    │
212 │     recursive-parse(chem, mode: mode),
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    │
    = hint: if you meant to display multiple letters as is, try adding spaces be
tween each letter: `t e s t`
    = hint: or if you meant to display this as text, try placing it in quotes: `
"test"`

Metadata

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