Skip to content

LaTeX mode creeps in when using JavaScript code snippets #29

@jcubic

Description

@jcubic

When having code like this:

---
sidebar_position: 5
---

import CodePen from '@site/src/CodePen';

# Automation

There are few ways to automate the usage of the Terminal.

## Executing Commands

You can execute a command just like the user typed a command:

```javascript
const term = $('body').terminal({
  echo(arg) {
      this.echo(arg.toUpperCase());
  }
});

term.exec('echo hello');
```

After $( JavaScript mode switches to LaTeX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions