Skip to content

Commit

Permalink
add variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-uvarov committed Nov 29, 2024
1 parent a08ac75 commit a327176
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions numd/commands.nu
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,15 @@ export def generate-intermediate-script [
]: nothing -> string {
let $current_dir = pwd

let $table_with_original_blocks_and_intermed_helpers = $md_classified
| where action == 'execute'
| insert code {|i|
$i.line
| execute-block-lines ($i.row_type | extract-fence-options)
| generate-tags $i.block_index $i.row_type
}

$md_classified
| where action == 'execute'
| insert code {|i| $i.line
| execute-block-lines ($i.row_type | extract-fence-options)
| generate-tags $i.block_index $i.row_type
}
$table_with_original_blocks_and_intermed_helpers
| get code -i
| if $env.numd?.prepend-code? != null {
prepend $"($env.numd?.prepend-code?)\n"
Expand Down

0 comments on commit a327176

Please sign in to comment.