MiniRepl: add punchcard flag for implicit vis

+ reintroduce editPattern
+ add punchcards to mini-notation.mdx
This commit is contained in:
Felix Roos 2023-01-13 15:13:39 +01:00
parent e4f538b674
commit b2c6d87633
10 changed files with 323 additions and 310 deletions

View file

@ -12,6 +12,7 @@ function useStrudel({
initialCode = '',
autolink = false,
beforeEval,
editPattern,
afterEval,
onEvalError,
onToggle,
@ -44,6 +45,7 @@ function useStrudel({
getTime,
drawContext,
transpiler,
editPattern,
beforeEval: ({ code }) => {
setCode(code);
beforeEval?.();