Annotation export to markdown fails to include chapter titles

Bug #2039336 reported by Ed Manukian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Annotation Browser is used to export user highlights and annotations into the markdown format generating .md file.
The browser correctly exports a) highlights, b) notes and c) links to the exported annotations
but fails to include the top level chapters titles in the export.

The chapter title inclusion in the annotation export was implemented since v.5.15 under the "When exporting highlights as text or markdown also output top level chapter titles"
see https://github.com/kovidgoyal/calibre/commit/d8649c6fed4e9e5f3a509203737bbbb4b2360bd7

I have tested random epubs in versions 6.27.0, and 6.28.1 and in all cases the annotation exports did not contain the chapter titles.
Also, all anotations were made in Calibre viewer recently (i.e. after and not before the feature was first implemented)

The test epub book file(s) attached.

To replicate:
1. Open an epub in the calibre viewer (better use one attached)
2. Highlight text / make annotations
3. Open the Annotation Browser
4. Select annotations to export (notes and highlights)
5. Click on "Export all selected" button
6. Select "Markdown" option a from the dialog box
7. Save as file

This generates the .md file that doesnt contains chapter titles but does contain:
a. Name of the book (title)
b. Highlights and notes
c. Link with a date/time stamp referencing the location of the specific annotation in the viewer.

Revision history for this message
Ed Manukian (edya) wrote :
Revision history for this message
Ed Manukian (edya) wrote :
Revision history for this message
Ed Manukian (edya) wrote :

Update: I just discovered that if one exports the annotations from the Calibre Viewer and not the Annotation Browser then the titles are exported fine. So the issue only happens when one uses the Annotation Browser.

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.