View Single Post
Old 09-23-2024, 08:22 AM   #66
jm289765
Enthusiast
jm289765 began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jan 2023
Device: calibre
Quote:
Originally Posted by justanotheruser. View Post
While you are here, is there any chance you could point me in the direction to inherit the chapter number for the highlights/annotations that are coming through please? Similar to when exporting in .md through annotations
Use toc_family_titles from the annotation's json object.

Instead of make_book_format_dict, you would add this one to make_highlight_format_dict.

Code:
highlight_format = {
    ...
    chapter_title: str(annot["toc_family_titles"])
}
jm289765 is offline   Reply With Quote