mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 16:17:59 +00:00
Revert the silent source export of whole answers
This commit is contained in:
3 files changed
+1
-61
No files matched your search
@@ -738,13 +738,7 @@ public partial class ContentBlockComponent : MSGComponentBase
|
||||
// here which would fall out of sync with the one in FileExportFormatExtensions.
|
||||
//
|
||||
if (format.UsesPandoc())
|
||||
{
|
||||
if (this.Content.TryGetMarkdownText(out var originalMarkdown) &&
|
||||
PlainFileExport.TryExtractStandaloneSource(originalMarkdown, format, out var source))
|
||||
await PlainFileExport.ToSourceFile(this.RustService, this.EffectiveExportTitle, format, source);
|
||||
else
|
||||
await PandocExport.ToDocument(this.RustService, this.PandocAvailability, this.EffectiveExportTitle, format, this.Content);
|
||||
}
|
||||
await PandocExport.ToDocument(this.RustService, this.PandocAvailability, this.EffectiveExportTitle, format, this.Content);
|
||||
else if (this.Content.TryGetExportMarkdown(out var markdown))
|
||||
await PlainFileExport.ToFile(this.RustService, this.EffectiveExportTitle, format, markdown);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user