Skip to content

Commit 82603e7

Browse files
committed
Allow js to set embed
1 parent 7a58f1e commit 82603e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dbdiag/spans.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def chart_to_svg(chart : Chart) -> str:
309309

310310
#### Driver
311311

312-
def to_span_svg(text_input):
312+
def to_span_svg(text_input, embed=None):
313+
if embed is True or embed is False:
314+
constants.EMBED = embed
313315
try:
314316
operations = parser.parse(text_input)
315317
except RuntimeError as e:

0 commit comments

Comments
 (0)