2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

Fix Joplin export (#12446)

turn highlight & notes table into string before sending to joplin
This commit is contained in:
bitterlox 2024-09-02 10:53:07 +02:00 committed by GitHub
parent 2a9fe6fdcf
commit 491e24ea25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -329,7 +329,8 @@ function JoplinExporter:export(t)
local markdown_settings = plugin_settings.markdown
local notebook_id = self.settings.notebook_guid
for _, booknotes in pairs(t) do
local note = md.prepareBookContent(booknotes, markdown_settings.formatting_options, markdown_settings.highlight_formatting)
local note_tbl = md.prepareBookContent(booknotes, markdown_settings.formatting_options, markdown_settings.highlight_formatting)
local note = table.concat(note_tbl, "\n")
local note_id = self:findNoteByTitle(booknotes.title, notebook_id)
local response