Hello
I wrote an image insert plugin: [plugin:image](). However, I would prefer to overwrite the normal markdown image code.
So that I can write instead of plugin:image and the plugin is still work.
Thank you very much for your help!
Hello
I wrote an image insert plugin: [plugin:image](). However, I would prefer to overwrite the normal markdown image code.
So that I can write instead of plugin:image and the plugin is still work.
Thank you very much for your help!
If you search the plugin list for markdown, you'll see a number of extender plugins that hook onto the onMarkdownInitialized event (see the Grav Lifecycle page).
I'm not seeing explicit examples of overriding existing syntax, but I presume your plugin would run first, so you could hijack any instances of ! and do your thing before standard Markdown takes over.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 211 | 3 weeks ago | ||
| 2 | 370 | 1 month ago | ||
| 2 | 291 | 2 months ago | ||
| 3 | 1499 | 2 months ago | ||
| 1 | 414 | 2 months ago |