How to insert Math code-block with default value? I try to config code|value|content : 'e=mc^2' , but no effect.
#1873
Unanswered
yswang0927
asked this question in
Q&A
Replies: 1 comment
-
|
Maybe call import { insert } from '@milkdown/kit/utils';
const latexMarkdownString = `$$
e=mc^2
$$`;
editor.action(insert(latexMarkdownString));It's not easy to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When inserting a
Mathcode-block, I want to set some default value.I modify the source code
crepe/src/feature/block-edit/menu/config.ts:I try to add
code: 'e=mc^2'orvalue: 'e=mc^2'orcontent: 'e=mc^2'config-item, but no effect.Beta Was this translation helpful? Give feedback.
All reactions