Include bookmarks within html titles

main
Bob Mottram 2022-12-06 14:33:17 +00:00
parent ea0a245ad7
commit 14d64ea272
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ def markdown_to_html(markdown: str) -> str:
for hsh, hashes in titles.items():
if line.startswith(hashes):
line = line.replace(hashes, '').strip()
line = '<' + hsh + '>' + line + '</' + hsh + '>\n'
line = '<' + hsh + ' id="' + line + '">' + line + '</' + hsh + '>\n'
ctr = -1
break
html_str += line