Export tags in markdown format as comments (#419)

This commit is contained in:
Ahmed El Gabri 2019-11-11 22:28:06 +01:00 committed by Mischievous Meerkat
parent 5fac8d63cc
commit 38cd129177

10
buku
View File

@ -2802,9 +2802,15 @@ def convert_bookmark_set(
if export_type == 'markdown':
for row in resultset:
if not row[2]:
out += '- [Untitled](' + row[1] + ')\n'
out += '- [Untitled](' + row[1] + ')'
else:
out += '- [' + row[2] + '](' + row[1] + ')\n'
out += '- [' + row[2] + '](' + row[1] + ')'
if row[3] != DELIM:
out += ' <!-- TAGS: {} -->\n'.format(row[3][1:-1])
else:
out += '\n'
count += 1
elif export_type == 'org':
for row in resultset: