Resolves #223 by removing unnecessary image markup (#260)

This commit is contained in:
grepmew 2021-06-03 14:36:04 -07:00 committed by GitHub
parent f8ff7c0c38
commit a6406107e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -660,7 +660,7 @@ class AnkiConnect:
for field in media['fields']: for field in media['fields']:
if field in ankiNote: if field in ankiNote:
if mediaType is util.MediaType.Picture: if mediaType is util.MediaType.Picture:
ankiNote[field] += u'<div><img src="{}"><br></div>'.format(mediaFilename) ankiNote[field] += u'<img src="{}">'.format(mediaFilename)
elif mediaType is util.MediaType.Audio or mediaType is util.MediaType.Video: elif mediaType is util.MediaType.Audio or mediaType is util.MediaType.Video:
ankiNote[field] += u'[sound:{}]'.format(mediaFilename) ankiNote[field] += u'[sound:{}]'.format(mediaFilename)