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
{{ message }}
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
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.
Thoughts?
The text was updated successfully, but these errors were encountered:
oyeanuj
changed the title
Accepting data to toggle & wrap functions
Accepting data in toggle & wrap functions
Apr 25, 2018
Hi folks, thank you as always for the plugin! I was wondering if the
toggle
andwrap
functions should take an optionaldata
to 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
wrap
or `toggle` functions to set the code block.The other alternative would be to do an
insertBlock
but since thewrap
&toggle
seem to be exposed utilities, it felt 'safer' to use those.Thoughts?
The text was updated successfully, but these errors were encountered: