Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be cool to control the ability to run the code auto that I marked separately. #11

Open
PhoenixBirdy opened this issue May 30, 2023 · 2 comments

Comments

@PhoenixBirdy
Copy link

PhoenixBirdy commented May 30, 2023

config Code-Emitter:

  • auto: off

Something like that in note:

  • 1
const a = 10;
console.log(`Output: ${a}`)
//Output: 10
  • 2
const b = 20;
console.log(`Output: ${b}`);

So the first code have option run:true(or something like this) and have result: "Output: 10", second code - just wait pressing ▶ and not running, because of configuration of code-emitter.

OR
config Code-Emitter:

  • auto: on

Something like that in note:

  • 3
const c = 10;
console.log(`Output: ${c}`)
//Output: 10
  • 4
const d = 20;
console.log(`Output: ${d}`);

So the third code autorunning is working, the fourth code used manually block(option run: block) for code running.

@mokeyish
Copy link
Owner

Hello, Seems like codeblock supports extra attribute flags.

eg:

```js,autorun
const d = 20;
console.log(`Output: ${d}`);
```

I see your technology stack is typescript. Would you like to submit a PR to support this feature?

@PhoenixBirdy
Copy link
Author

PhoenixBirdy commented May 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants