Commit c45ab84 1 parent b9b1eab commit c45ab84 Copy full SHA for c45ab84
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,13 @@ defmodule Kino.Excalidraw.Options do
55
55
end
56
56
57
57
@ option_names [ :variable , "variable" ]
58
- defp build_option ( { option , value } ) when is_binary ( value ) when option in @ option_names do
58
+ defp build_option ( { option , value } ) when is_binary ( value ) and option in @ option_names do
59
+ value = String . trim ( value )
60
+
59
61
if Kino.SmartCell . valid_variable_name? ( value ) do
60
62
[ { :variable , value } ]
61
63
else
62
- [ ]
64
+ [ { :variable , nil } ]
63
65
end
64
66
end
65
67
Original file line number Diff line number Diff line change 1
1
defmodule KinoExcalidraw.MixProject do
2
2
use Mix.Project
3
3
4
- @ version "0.4 .0"
4
+ @ version "0.5 .0"
5
5
@ description "Excalidraw integration with Livebook"
6
6
7
7
def project do
You can’t perform that action at this time.
0 commit comments