You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, thank you as always for the plugin! I was wondering if the toggle and wrap functions should take an optional data to be able to pass in things like syntax (and thus allowing easier interoperability with slate-prism).
My personal usecase is Github style markdown of three ~~~/``` followed by the language name. Using regex, I can capture the syntax proposed but can't use the wrap or `toggle` functions to set the code block.
The other alternative would be to do an insertBlock but since the wrap & toggle seem to be exposed utilities, it felt 'safer' to use those.
Hi folks, thank you as always for the plugin! I was wondering if the
toggleandwrapfunctions should take an optionaldatato be able to pass in things like syntax (and thus allowing easier interoperability withslate-prism).My personal usecase is Github style markdown of three ~~~/``` followed by the language name. Using regex, I can capture the syntax proposed but can't use the
wrapor `toggle` functions to set the code block.The other alternative would be to do an
insertBlockbut since thewrap&toggleseem to be exposed utilities, it felt 'safer' to use those.Thoughts?