How can I custom syntax? #1000
-
As https://milkdown.dev/docs/plugin/example-iframe-plugin mentioned, it is easy to create a syntax like ::name[label]{attributes}. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Generally you'll need to use a remark plugin to create a node for your syntax, something similar to https://github.com/Milkdown/milkdown/blob/main/packages/plugin-emoji/src/__internal__/remark-twemoji.ts#L39 |
Beta Was this translation helpful? Give feedback.
-
nope
发自我的iPhone
…------------------ Original ------------------
From: Krzysztof Nofz ***@***.***>
Date: Wed,Mar 6,2024 8:06 PM
To: Milkdown/milkdown ***@***.***>
Cc: By_Ha ***@***.***>, Mention ***@***.***>
Subject: Re: [Milkdown/milkdown] How can I custom syntax? (Discussion #1000)
@By-Ha Did you figure it out?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@By-Ha |
Beta Was this translation helpful? Give feedback.
Generally you'll need to use a remark plugin to create a node for your syntax, something similar to https://github.com/Milkdown/milkdown/blob/main/packages/plugin-emoji/src/__internal__/remark-twemoji.ts#L39