Allow viewing the source code of blocks (#894)

* Add spans to blocks and view command

* Better description; Cleanup

* Rename "view" command to "view-source"
This commit is contained in:
Jakub Žádník
2022-01-31 00:05:25 +02:00
committed by GitHub
parent 67cb720f24
commit 2fbd182993
7 changed files with 122 additions and 3 deletions

View File

@ -330,6 +330,11 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
Base64,
};
// Experimental
bind_command! {
ViewSource,
};
#[cfg(feature = "plugin")]
bind_command!(Register);