From 14d64ea27246095e62ef6b88e33415e782848c1e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Dec 2022 14:33:17 +0000 Subject: [PATCH] Include bookmarks within html titles --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.py b/markdown.py index b43e53ce2..e7a976084 100644 --- a/markdown.py +++ b/markdown.py @@ -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 + '\n' + line = '<' + hsh + ' id="' + line + '">' + line + '\n' ctr = -1 break html_str += line