Fixed local source links being refused by Word and LibreOffice

This commit is contained in:
Thorsten Sommer committed 2026-09-15 17:24:11 +02:00
1 parent 91d0e742de
commit baa48c80e1
6 files changed
+125 -7

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ public static class PandocExport
// We read the text before we ask for a path: when there is nothing to convert, the user
// should learn that right away instead of picking a file first and getting an error afterwards.
//
if (!markdownContent.TryGetExportMarkdown(out var markdownText))
if (!markdownContent.TryGetExportMarkdown(out var markdownText, format.FollowsPageAnchors()))
{
LOGGER.LogWarning("Cannot export the content as {ExportFormat}, because it carries no text.", format);
await MessageBus.INSTANCE.SendError(new(Icons.Material.Filled.Cancel, TB("Only text messages can be exported.")));