Skip to content

Typos in Interacting with a Mathfield #16

@hexaron

Description

@hexaron

Hi guys,

there seem to be two typos in

```js
mf.setOptions({onExport: (mf, latex, range) =>
"`" + mg.getValue(range, 'ascii-math') + "`".
});
```

For one, the . at the end of the line is incorrect syntax, second, the variable mg is not defined.
I believe the correct code should be:

mf.setOptions({onExport: (mg, latex, range) => 
  "`" + mg.getValue(range, 'ascii-math') + "`"
});

This also applies to the above two code snippets.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions