Skip to content

Commit

Permalink
Allow js to set embed
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismiller committed Oct 30, 2024
1 parent 7a58f1e commit 82603e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbdiag/spans.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def chart_to_svg(chart : Chart) -> str:

#### Driver

def to_span_svg(text_input):
def to_span_svg(text_input, embed=None):
if embed is True or embed is False:
constants.EMBED = embed
try:
operations = parser.parse(text_input)
except RuntimeError as e:
Expand Down

0 comments on commit 82603e7

Please sign in to comment.