Use case or problem
I have achieved a visual editing function similar to that of a callout: AnyBlockPro (可视化编辑版) 动态演示 · any-block/any-block · Discussion #189 · GitHub
During the development process, I encountered some problems: I am unable to override the original callout function.
This has forced me to temporarily use a makeshift grammar as a substitute. But this would reduce the universality of grammar, which is not what I desire.
Proposed solution
I hope to incorporate the “callout” feature into the core plugin and provide a switch or even options for it.
If it is an option plan, the options could be: (1) OFM callout, (2) GFM alert, (3) not to be activated. (My primary requirement is Option Three. Option Two is merely a suggested alternative.)
Option three can solve my current problem. Enable my plugin to take over the functionality of the “callout” syntax.
Besides, option two and option three make Markdown more versatile, just like you can choose whether to use a wiki link or a regular Markdown link.
Let me explain the differences between ofm callout and gfm alert:
- In terms of type, only “note”, “warning” and “tip” are completely universal.
- The “caution” and “important” types are used for both, but the color levels are different.
- Apart from the five types of callouts mentioned above, the rest will not be effective in GFM.
- GFM Alert does not support titles and collapsed states.