Replies: 1 comment
-
So |
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
-
I have cloned the repo
marp-vscode
and run it with ease. I wanted to add some features for it e.g. a multi-column layout. Actually I did it, by writing some code directly in thesrc/extensions.ts
usingmarp.use()
interface as shown in the figure below:But now the point is that, it looks a mess if I add the plugin code here. I do find some already written plguins in
src/plugins
, likecustom-theme.ts
,line-number.ts
. I tried to write one more plugin like them but I just have no idea what's the runtime-type of theinstance
(see code below) and I dont know how to go next.Could u please tell me, how I can implement a new plugin like the code below, using
markdownItContainer
and its params?Best regards. :)
Beta Was this translation helpful? Give feedback.
All reactions