feat(datasheet): allow svg images

This commit is contained in:
Boundary Effect
2023-09-09 00:10:44 +02:00
parent 1da6923f8c
commit 389d181cbb
2 changed files with 2 additions and 9 deletions
+1 -5
View File
@@ -462,12 +462,8 @@ class Project():
# handle pictures
yaml['picture_link'] = ''
if yaml['picture']:
# skip SVG for now, not supported by pandoc
picture_name = yaml['picture']
if 'svg' not in picture_name:
yaml['picture_link'] = '![picture]({})'.format(picture_name)
else:
logging.warning("svg not supported")
yaml['picture_link'] = '![picture]({})'.format(picture_name)
# now build the doc & print it
try: