Skip to content

Parsing "" gives strange LaTeX #43

@bengolds

Description

@bengolds

Parsing the empty string gives incorrect LaTeX in the parsed JSON; instead of getting latex: "", you get latex: '\\mathrm{Nothing}'.

This was tested on compute-engine 0.6.0.

const ce = new ComputeEngine();
ce.jsonSerializationOptions.metadata = ['latex'];
ce.parse("").json
> { sym: 'Nothing', latex: '\\mathrm{Nothing}' }

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